Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009995/0.009995, allocations: 173.1 kB / 15.12 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.99/1.99, allocations: 194.5 MB / 210.3 MB, free: 7.609 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002064/0.002064, allocations: 116.6 kB / 255.6 MB, free: 10.24 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2568/0.2568, allocations: 40 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006299/0.0006299, allocations: 12 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1015, allocations: 54.87 MB / 461.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.686/7.788, allocations: 2.588 GB / 3.038 GB, free: 82.12 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/7.788, allocations: 85.8 kB / 3.038 GB, free: 82.07 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.129/8.917, allocations: 216.1 MB / 3.249 GB, free: 67.1 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.254e-06/8.917, allocations: 3.844 kB / 3.249 GB, free: 67.1 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.978e-05/8.917, allocations: 11.91 kB / 3.249 GB, free: 67.09 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005454/8.922, allocations: 1.206 MB / 3.25 GB, free: 65.84 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/8.922, allocations: 12.03 kB / 3.25 GB, free: 65.83 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000144/8.922, allocations: 66.53 kB / 3.25 GB, free: 65.76 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002424/8.925, allocations: 215.3 kB / 3.251 GB, free: 65.55 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007953/8.926, allocations: 388.9 kB / 3.251 GB, free: 65.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/8.926, allocations: 28.66 kB / 3.251 GB, free: 65.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/8.926, allocations: 32.33 kB / 3.251 GB, free: 65.08 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/8.928, allocations: 0.6048 MB / 3.252 GB, free: 64.44 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/8.928, allocations: 3.75 kB / 3.252 GB, free: 64.44 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.995e-05/8.928, allocations: 16 kB / 3.252 GB, free: 64.42 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/8.928, allocations: 8 kB / 3.252 GB, free: 64.41 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/8.931, allocations: 0.5523 MB / 3.252 GB, free: 63.87 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003306/8.934, allocations: 2.534 MB / 3.255 GB, free: 61.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/8.936, allocations: 453.7 kB / 3.255 GB, free: 60.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1737/9.11, allocations: 51.35 MB / 3.305 GB, free: 3.934 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/9.11, allocations: 34.5 kB / 3.305 GB, free: 3.891 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.434e-06/9.11, allocations: 3.938 kB / 3.305 GB, free: 3.887 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.003948/9.114, allocations: 0.7858 MB / 3.306 GB, free: 3.094 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/9.114, allocations: 102.8 kB / 3.306 GB, free: 2.969 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/9.114, allocations: 259.6 kB / 3.306 GB, free: 2.707 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/9.114, allocations: 25.7 kB / 3.306 GB, free: 2.676 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/9.115, allocations: 214.9 kB / 3.307 GB, free: 2.465 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.706e-05/9.115, allocations: 90.3 kB / 3.307 GB, free: 2.379 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/9.115, allocations: 8 kB / 3.307 GB, free: 2.371 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.054e-05/9.115, allocations: 346.8 kB / 3.307 GB, free: 2.023 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005857/9.115, allocations: 140.6 kB / 3.307 GB, free: 1.883 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006514/9.116, allocations: 260.6 kB / 3.307 GB, free: 1.574 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006247/9.117, allocations: 171.8 kB / 3.308 GB, free: 1.406 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/9.117, allocations: 0 / 3.308 GB, free: 1.406 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001495/9.118, allocations: 453.6 kB / 3.308 GB, free: 0.957 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/9.118, allocations: 9.719 kB / 3.308 GB, free: 0.9492 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/9.118, allocations: 4.469 kB / 3.308 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/9.118, allocations: 8 kB / 3.308 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006304/9.119, allocations: 99.81 kB / 3.308 GB, free: 0.8398 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/9.119, allocations: 4 kB / 3.308 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005317/9.119, allocations: 67.56 kB / 3.308 GB, free: 0.7695 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/9.12, allocations: 23.97 kB / 3.308 GB, free: 0.7461 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002408/9.12, allocations: 157.7 kB / 3.308 GB, free: 0.582 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.892e-05/9.12, allocations: 27.72 kB / 3.308 GB, free: 0.5547 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3387/9.459, allocations: 1.911 MB / 3.31 GB, free: 89.33 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.392e-05/9.459, allocations: 30.73 kB / 3.31 GB, free: 89.33 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/9.459, allocations: 0 / 3.31 GB, free: 89.33 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/9.459, allocations: 5.672 kB / 3.31 GB, free: 89.33 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/9.46, allocations: 0.973 MB / 3.311 GB, free: 89.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/9.46, allocations: 4.344 kB / 3.311 GB, free: 89.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/9.461, allocations: 80.47 kB / 3.311 GB, free: 89.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/9.461, allocations: 11.22 kB / 3.311 GB, free: 89.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/9.461, allocations: 10.72 kB / 3.311 GB, free: 89.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/9.461, allocations: 3.906 kB / 3.311 GB, free: 89.13 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/9.461, allocations: 0 / 3.311 GB, free: 89.13 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/9.463, allocations: 1.067 MB / 3.312 GB, free: 88.94 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/9.464, allocations: 211.2 kB / 3.313 GB, free: 88.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.627e-05/9.464, allocations: 5.094 kB / 3.313 GB, free: 88.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/9.464, allocations: 43.3 kB / 3.313 GB, free: 88.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/9.464, allocations: 30.88 kB / 3.313 GB, free: 88.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/9.464, allocations: 11.09 kB / 3.313 GB, free: 88.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004394/9.465, allocations: 260.5 kB / 3.313 GB, free: 88.71 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.2e-07/9.465, allocations: 1.438 kB / 3.313 GB, free: 88.71 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00534/9.47, allocations: 1.005 MB / 3.314 GB, free: 88.71 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01262/9.483, allocations: 2.894 MB / 3.317 GB, free: 87.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002032/9.485, allocations: 0.6023 MB / 3.317 GB, free: 87.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/9.485, allocations: 0 / 3.317 GB, free: 87.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/9.486, allocations: 0.5111 MB / 3.318 GB, free: 87.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/9.488, allocations: 167.8 kB / 3.318 GB, free: 87.93 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2528/9.74, allocations: 81.06 MB / 3.397 GB, free: 81.04 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/9.741, allocations: 0.9835 MB / 3.398 GB, free: 80.34 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.000751/9.742, allocations: 234.7 kB / 3.398 GB, free: 80.32 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/9.742, allocations: 247.9 kB / 3.399 GB, free: 80.32 MB / 490.7 MB Notification: Performance of SimCode: time 1.252e-06/9.742, allocations: 0 / 3.399 GB, free: 80.32 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1281/9.87, allocations: 38.19 MB / 3.436 GB, free: 57.34 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003004/9.871, allocations: 235.8 kB / 3.436 GB, free: 57.09 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.295/14.17, allocations: 0 / 3.436 GB, free: 57.09 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat