Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 178.7 kB / 8.007 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.3 MB / 213.7 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009548/0.0009545, allocations: 90.61 kB / 261.7 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2312/0.2312, allocations: 43.49 MB / 353.2 MB, free: 296 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.122e-05/2.126e-05, allocations: 4 kB / 418.4 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1293, allocations: 58.86 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.592/7.722, allocations: 2.754 GB / 3.22 GB, free: 154.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/7.722, allocations: 89.84 kB / 3.22 GB, free: 154.2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.8302/8.552, allocations: 213.9 MB / 3.429 GB, free: 87.16 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.613e-06/8.552, allocations: 2.625 kB / 3.429 GB, free: 87.16 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.239e-05/8.552, allocations: 10.88 kB / 3.429 GB, free: 87.16 MB / 0.4948 GB 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.006195/8.559, allocations: 1.164 MB / 3.43 GB, free: 86.63 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 8.975e-05/8.559, allocations: 8.844 kB / 3.43 GB, free: 86.63 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001988/8.561, allocations: 229.2 kB / 3.43 GB, free: 86.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007631/8.561, allocations: 361.9 kB / 3.43 GB, free: 86.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/8.561, allocations: 14.91 kB / 3.43 GB, free: 86.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.301e-05/8.562, allocations: 16.59 kB / 3.43 GB, free: 86.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006571/8.562, allocations: 293.6 kB / 3.431 GB, free: 86.39 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/8.563, allocations: 388.8 kB / 3.431 GB, free: 86.26 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/8.563, allocations: 1.766 kB / 3.431 GB, free: 86.26 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/8.563, allocations: 4.25 kB / 3.431 GB, free: 86.26 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/8.563, allocations: 11.64 kB / 3.431 GB, free: 86.26 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.01955/8.582, allocations: 10.14 MB / 3.441 GB, free: 79.91 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004857/8.583, allocations: 228.9 kB / 3.441 GB, free: 79.89 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/8.583, allocations: 124.3 kB / 3.441 GB, free: 79.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04424/8.627, allocations: 24.16 MB / 3.465 GB, free: 65.22 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/8.628, allocations: 36.16 kB / 3.465 GB, free: 65.18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 2.946e-06/8.628, allocations: 0 / 3.465 GB, free: 65.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.002044/8.63, allocations: 0.5052 MB / 3.465 GB, free: 65.13 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/8.63, allocations: 110.6 kB / 3.465 GB, free: 65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/8.63, allocations: 239.7 kB / 3.466 GB, free: 64.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/8.63, allocations: 25.7 kB / 3.466 GB, free: 64.87 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/8.63, allocations: 212 kB / 3.466 GB, free: 64.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/8.63, allocations: 74.55 kB / 3.466 GB, free: 64.71 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.523e-05/8.63, allocations: 0 / 3.466 GB, free: 64.71 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.565e-05/8.63, allocations: 338.6 kB / 3.466 GB, free: 64.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/8.63, allocations: 85.95 kB / 3.466 GB, free: 64.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/8.631, allocations: 182.6 kB / 3.467 GB, free: 64.29 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005839/8.631, allocations: 159.2 kB / 3.467 GB, free: 64.29 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/8.631, allocations: 0 / 3.467 GB, free: 64.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000862/8.632, allocations: 364.6 kB / 3.467 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/8.632, allocations: 3.969 kB / 3.467 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/8.632, allocations: 11.55 kB / 3.467 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/8.632, allocations: 3.969 kB / 3.467 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/8.633, allocations: 90.78 kB / 3.467 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/8.633, allocations: 7.406 kB / 3.467 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003999/8.633, allocations: 53.39 kB / 3.467 GB, free: 64.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/8.633, allocations: 19.47 kB / 3.467 GB, free: 64.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001162/8.633, allocations: 115.4 kB / 3.467 GB, free: 64.12 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007672/8.634, allocations: 294.5 kB / 3.468 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.708e-05/8.634, allocations: 36.86 kB / 3.468 GB, free: 64.06 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/8.636, allocations: 1.622 MB / 3.469 GB, free: 63.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.507e-05/8.636, allocations: 25.14 kB / 3.469 GB, free: 63.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/8.636, allocations: 0 / 3.469 GB, free: 63.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/8.636, allocations: 7.875 kB / 3.469 GB, free: 63.87 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009618/8.637, allocations: 0.8369 MB / 3.47 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/8.637, allocations: 0 / 3.47 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/8.637, allocations: 81.03 kB / 3.47 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/8.637, allocations: 0 / 3.47 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/8.637, allocations: 15.5 kB / 3.47 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/8.637, allocations: 3.125 kB / 3.47 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/8.637, allocations: 0 / 3.47 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/8.638, allocations: 0.9175 MB / 3.471 GB, free: 63.46 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/8.639, allocations: 208.6 kB / 3.471 GB, free: 63.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.071e-05/8.639, allocations: 0 / 3.471 GB, free: 63.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/8.639, allocations: 47.77 kB / 3.471 GB, free: 63.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.314e-05/8.639, allocations: 33.75 kB / 3.471 GB, free: 63.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-05/8.639, allocations: 10.25 kB / 3.471 GB, free: 63.32 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002653/8.639, allocations: 290.1 kB / 3.472 GB, free: 63.23 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/8.639, allocations: 0 / 3.472 GB, free: 63.23 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005826/8.645, allocations: 0.9942 MB / 3.473 GB, free: 63.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.009864/8.655, allocations: 2.779 MB / 3.475 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008346/8.656, allocations: 462.9 kB / 3.476 GB, free: 62.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/8.656, allocations: 0 / 3.476 GB, free: 62.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003959/8.656, allocations: 419.3 kB / 3.476 GB, free: 62.18 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/8.658, allocations: 170.7 kB / 3.476 GB, free: 62.17 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005859/8.664, allocations: 1.458 MB / 3.478 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/8.664, allocations: 0.9663 MB / 3.479 GB, free: 61.02 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005579/8.665, allocations: 263.9 kB / 3.479 GB, free: 61.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/8.665, allocations: 234.8 kB / 3.479 GB, free: 61.01 MB / 0.4948 GB Notification: Performance of SimCode: time 1.593e-06/8.665, allocations: 0 / 3.479 GB, free: 61.01 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07306/8.738, allocations: 34.89 MB / 3.513 GB, free: 59.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/8.738, allocations: 189 kB / 3.513 GB, free: 59.14 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.175/11.91, allocations: 0 / 3.513 GB, free: 59.14 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat