Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002235/0.002235, allocations: 178.8 kB / 8.363 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 90.95 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2932/0.2932, allocations: 43.49 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.07e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.4147, allocations: 58.85 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.376/8.791, allocations: 2.754 GB / 3.22 GB, free: 32.62 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004219/8.792, allocations: 86.27 kB / 3.22 GB, free: 32.57 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 1.283/10.07, allocations: 213.9 MB / 3.429 GB, free: 25.45 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.953e-06/10.07, allocations: 0 / 3.429 GB, free: 25.45 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 3.95e-05/10.07, allocations: 12 kB / 3.429 GB, free: 25.44 MB / 0.4952 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.006655/10.08, allocations: 1.171 MB / 3.43 GB, free: 24.23 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/10.08, allocations: 8.031 kB / 3.43 GB, free: 24.22 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003687/10.08, allocations: 223.3 kB / 3.43 GB, free: 24 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009845/10.09, allocations: 369.8 kB / 3.43 GB, free: 23.61 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/10.09, allocations: 16 kB / 3.43 GB, free: 23.59 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.887e-05/10.09, allocations: 16 kB / 3.43 GB, free: 23.57 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009774/10.09, allocations: 301.4 kB / 3.431 GB, free: 23.28 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009834/10.09, allocations: 381.5 kB / 3.431 GB, free: 22.87 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/10.09, allocations: 4 kB / 3.431 GB, free: 22.86 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.355e-05/10.09, allocations: 3.984 kB / 3.431 GB, free: 22.86 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/10.09, allocations: 11.95 kB / 3.431 GB, free: 22.85 MB / 0.4952 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.03767/10.13, allocations: 10.13 MB / 3.441 GB, free: 11.62 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008758/10.13, allocations: 238.7 kB / 3.441 GB, free: 11.38 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003609/10.13, allocations: 120.8 kB / 3.441 GB, free: 11.26 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4465/10.57, allocations: 24.15 MB / 3.465 GB, free: 74.13 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.85e-05/10.57, allocations: 37.27 kB / 3.465 GB, free: 74.09 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=24): time 4.458e-06/10.57, allocations: 0 / 3.465 GB, free: 74.09 MB / 0.4952 GB Notification: Performance of matching and sorting (n=24): time 0.003033/10.58, allocations: 0.5112 MB / 3.465 GB, free: 74.05 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/10.58, allocations: 105.9 kB / 3.465 GB, free: 73.93 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004457/10.58, allocations: 230.6 kB / 3.466 GB, free: 73.83 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 6.336e-05/10.58, allocations: 25.7 kB / 3.466 GB, free: 73.8 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/10.58, allocations: 268.4 kB / 3.466 GB, free: 73.63 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/10.58, allocations: 76.52 kB / 3.466 GB, free: 73.59 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/10.58, allocations: 1.344 kB / 3.466 GB, free: 73.59 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 8.829e-05/10.58, allocations: 325.9 kB / 3.466 GB, free: 73.28 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/10.58, allocations: 83.81 kB / 3.466 GB, free: 73.28 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/10.58, allocations: 178 kB / 3.467 GB, free: 73.17 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/10.58, allocations: 164 kB / 3.467 GB, free: 73.17 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/10.58, allocations: 1 kB / 3.467 GB, free: 73.17 MB / 0.4952 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001519/10.58, allocations: 341.8 kB / 3.467 GB, free: 73.14 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/10.58, allocations: 11.42 kB / 3.467 GB, free: 73.13 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/10.58, allocations: 3.781 kB / 3.467 GB, free: 73.13 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.486e-05/10.58, allocations: 5.281 kB / 3.467 GB, free: 73.13 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006971/10.58, allocations: 91.67 kB / 3.467 GB, free: 73.13 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/10.58, allocations: 3.703 kB / 3.467 GB, free: 73.13 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006319/10.58, allocations: 56.83 kB / 3.467 GB, free: 73.12 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.274e-05/10.58, allocations: 16.56 kB / 3.467 GB, free: 73.12 MB / 0.4952 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.0001416/10.58, allocations: 115.6 kB / 3.467 GB, free: 73.02 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001352/10.58, allocations: 295.1 kB / 3.468 GB, free: 72.97 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.741e-05/10.58, allocations: 34.73 kB / 3.468 GB, free: 72.95 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003179/10.59, allocations: 1.63 MB / 3.469 GB, free: 72.77 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.138e-05/10.59, allocations: 25.86 kB / 3.469 GB, free: 72.77 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/10.59, allocations: 4.594 kB / 3.469 GB, free: 72.77 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/10.59, allocations: 2.297 kB / 3.469 GB, free: 72.77 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/10.59, allocations: 0.8343 MB / 3.47 GB, free: 72.58 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/10.59, allocations: 1.891 kB / 3.47 GB, free: 72.58 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006435/10.59, allocations: 77.34 kB / 3.47 GB, free: 72.58 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.399e-05/10.59, allocations: 4.922 kB / 3.47 GB, free: 72.58 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/10.59, allocations: 5.219 kB / 3.47 GB, free: 72.58 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/10.59, allocations: 2.969 kB / 3.47 GB, free: 72.58 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/10.59, allocations: 2.172 kB / 3.47 GB, free: 72.58 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/10.59, allocations: 0.9123 MB / 3.471 GB, free: 72.37 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003682/10.59, allocations: 209.1 kB / 3.471 GB, free: 72.23 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/10.59, allocations: 5.641 kB / 3.471 GB, free: 72.23 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/10.59, allocations: 45.14 kB / 3.471 GB, free: 72.23 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/10.59, allocations: 36.73 kB / 3.471 GB, free: 72.23 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/10.59, allocations: 8.891 kB / 3.471 GB, free: 72.23 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0004878/10.59, allocations: 288.1 kB / 3.472 GB, free: 72.14 MB / 0.4952 GB Notification: Performance of sort global known variables: time 3.41e-07/10.59, allocations: 0 / 3.472 GB, free: 72.14 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.005769/10.6, allocations: 0.9908 MB / 3.473 GB, free: 72.13 MB / 0.4952 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.0129/10.61, allocations: 2.794 MB / 3.475 GB, free: 71.38 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.00122/10.61, allocations: 458.1 kB / 3.476 GB, free: 71.37 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/10.61, allocations: 6.844 kB / 3.476 GB, free: 71.37 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0006984/10.61, allocations: 417.9 kB / 3.476 GB, free: 71.37 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/10.62, allocations: 164.2 kB / 3.476 GB, free: 71.36 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007149/10.62, allocations: 1.5 MB / 3.478 GB, free: 71.04 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000573/10.62, allocations: 0.9636 MB / 3.479 GB, free: 70.34 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004557/10.62, allocations: 237.6 kB / 3.479 GB, free: 70.33 MB / 0.4952 GB Notification: Performance of SimCode: time 1.031e-06/10.62, allocations: 0 / 3.479 GB, free: 70.33 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.473/14.1, allocations: 29.33 MB / 3.508 GB, free: 68.37 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat