Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",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.002979/0.002985, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.273/2.273, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001245/0.001245, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3094/0.3094, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006183/0.0006186, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.14, allocations: 58.85 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.04094/0.181, allocations: 24.13 MB / 0.5024 GB, free: 1.035 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03045/0.2115, allocations: 14.77 MB / 0.5168 GB, free: 2.23 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006906/0.2123, allocations: 11.88 kB / 0.5168 GB, free: 2.219 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.2135, allocations: 258.8 kB / 0.5171 GB, free: 1.965 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3549/0.5684, allocations: 3.517 MB / 0.5205 GB, free: 12.62 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01063/0.5791, allocations: 2.489 MB / 0.5229 GB, free: 12.59 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001579/0.5807, allocations: 0.5834 MB / 0.5235 GB, free: 12.58 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000592/0.5813, allocations: 235.3 kB / 0.5237 GB, free: 12.56 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.5827, allocations: 442.8 kB / 0.5242 GB, free: 12.56 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009032/0.5918, allocations: 2.944 MB / 0.527 GB, free: 12.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.592, allocations: 17.59 kB / 0.5271 GB, free: 12.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02214/0.6141, allocations: 7.28 MB / 0.5342 GB, free: 12.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002772/0.6145, allocations: 84.48 kB / 0.5342 GB, free: 12.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.6148, allocations: 110.9 kB / 0.5344 GB, free: 12.47 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009171/0.624, allocations: 3.105 MB / 0.5374 GB, free: 11.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.6241, allocations: 0 / 0.5374 GB, free: 11.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6241, allocations: 1.406 kB / 0.5374 GB, free: 11.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.6241, allocations: 0 / 0.5374 GB, free: 11.96 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005006/0.6291, allocations: 1.255 MB / 0.5386 GB, free: 11.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.6292, allocations: 13.61 kB / 0.5386 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.6293, allocations: 71.12 kB / 0.5387 GB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002861/0.6322, allocations: 251.9 kB / 0.5389 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008806/0.6331, allocations: 377.9 kB / 0.5393 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.686e-05/0.6332, allocations: 27.97 kB / 0.5393 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.454e-05/0.6333, allocations: 33.48 kB / 0.5394 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00242/0.6357, allocations: 0.6232 MB / 0.54 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.6358, allocations: 3.188 kB / 0.54 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-05/0.6359, allocations: 20.09 kB / 0.54 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.6359, allocations: 7.5 kB / 0.54 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00262/0.6385, allocations: 0.6022 MB / 0.5406 GB, free: 10.3 MB / 362.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.0046/0.6431, allocations: 2.65 MB / 0.5432 GB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.6456, allocations: 0.4906 MB / 0.5436 GB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1004/0.746, allocations: 24.42 MB / 0.5675 GB, free: 384 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.7461, allocations: 38.19 kB / 0.5675 GB, free: 340 kB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.485e-06/0.7461, allocations: 3.562 kB / 0.5675 GB, free: 340 kB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004593/0.7507, allocations: 0.8737 MB / 0.5684 GB, free: 15.62 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.7508, allocations: 109.3 kB / 0.5685 GB, free: 15.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006744/0.7515, allocations: 376.8 kB / 0.5689 GB, free: 15.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.556e-05/0.7516, allocations: 29.02 kB / 0.5689 GB, free: 15.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.7518, allocations: 265.4 kB / 0.5691 GB, free: 14.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.7519, allocations: 83.48 kB / 0.5692 GB, free: 14.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.752, allocations: 10.38 kB / 0.5692 GB, free: 14.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.7521, allocations: 322.4 kB / 0.5695 GB, free: 14.55 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007708/0.7529, allocations: 173.5 kB / 0.5697 GB, free: 14.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009138/0.7538, allocations: 280.9 kB / 0.57 GB, free: 14.17 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008312/0.7547, allocations: 194 kB / 0.5702 GB, free: 14.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.7547, allocations: 0 / 0.5702 GB, free: 14.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001955/0.7567, allocations: 488.5 kB / 0.5706 GB, free: 13.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004761/0.7572, allocations: 1.041 MB / 0.5716 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.7572, allocations: 11.98 kB / 0.5716 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.7573, allocations: 4 kB / 0.5716 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008517/0.7581, allocations: 106.2 kB / 0.5717 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.7582, allocations: 6.625 kB / 0.5718 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008054/0.759, allocations: 77.81 kB / 0.5718 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-05/0.7591, allocations: 18.48 kB / 0.5718 GB, free: 12.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.7591, allocations: 4 kB / 0.5719 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001845/0.7609, allocations: 445.4 kB / 0.5723 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.761, allocations: 4 kB / 0.5723 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.761, allocations: 8.219 kB / 0.5723 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007967/0.7618, allocations: 106.3 kB / 0.5724 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.7618, allocations: 11.33 kB / 0.5724 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005887/0.7624, allocations: 65.75 kB / 0.5725 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.7625, allocations: 15.25 kB / 0.5725 GB, free: 11.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0003798/0.7629, allocations: 242 kB / 0.5727 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.7631, allocations: 35.62 kB / 0.5727 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004313/0.7674, allocations: 2.006 MB / 0.5747 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.723e-05/0.7675, allocations: 29.52 kB / 0.5747 GB, free: 10.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.7675, allocations: 3.953 kB / 0.5747 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.7675, allocations: 3.984 kB / 0.5747 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.7692, allocations: 1.058 MB / 0.5758 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.7693, allocations: 0 / 0.5758 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007192/0.77, allocations: 92.39 kB / 0.5759 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.77, allocations: 0 / 0.5759 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.7701, allocations: 9.562 kB / 0.5759 GB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.7701, allocations: 0 / 0.5759 GB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.7701, allocations: 0 / 0.5759 GB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002499/0.7726, allocations: 1.155 MB / 0.577 GB, free: 8.543 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000465/0.7731, allocations: 268.8 kB / 0.5773 GB, free: 8.297 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.7732, allocations: 11.92 kB / 0.5773 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/0.7739, allocations: 44.27 kB / 0.5773 GB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.774, allocations: 31.08 kB / 0.5773 GB, free: 8.227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.913e-05/0.7741, allocations: 16.73 kB / 0.5774 GB, free: 8.215 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006993/0.7748, allocations: 374 kB / 0.5777 GB, free: 7.934 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.7748, allocations: 4 kB / 0.5777 GB, free: 7.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005092/0.7799, allocations: 1.154 MB / 0.5788 GB, free: 6.832 MB / 394.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: 18 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * 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.01163/0.7916, allocations: 2.839 MB / 0.5816 GB, free: 4.422 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003141/0.7948, allocations: 0.9007 MB / 0.5825 GB, free: 3.789 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.7948, allocations: 0 / 0.5825 GB, free: 3.789 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.796, allocations: 0.5395 MB / 0.583 GB, free: 3.484 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.7981, allocations: 211.4 kB / 0.5832 GB, free: 3.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007883/0.8061, allocations: 4.444 MB / 0.5876 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007014/0.8068, allocations: 0.9987 MB / 0.5885 GB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005533/0.8074, allocations: 274.3 kB / 0.5888 GB, free: 14.01 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.8074, allocations: 0 / 0.5888 GB, free: 14.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.677/4.484, allocations: 30.85 MB / 0.6189 GB, free: 15.42 MB / 442.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat