Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 97.8 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.00158, allocations: 203.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1981/0.1981, allocations: 46.19 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002547, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1236, allocations: 63.57 MB / 483.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.03521/0.1589, allocations: 28.82 MB / 0.5 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2691/0.428, allocations: 18.04 MB / 0.5176 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005297/0.4286, allocations: 14.12 kB / 0.5176 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007024/0.4293, allocations: 220.5 kB / 0.5178 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01257/0.4419, allocations: 3.644 MB / 0.5214 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004468/0.4464, allocations: 1.601 MB / 0.523 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001572/0.4479, allocations: 1.211 MB / 0.5241 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003958/0.4483, allocations: 238.2 kB / 0.5244 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008794/0.4492, allocations: 449.2 kB / 0.5248 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003611/0.4529, allocations: 1.855 MB / 0.5266 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-05/0.4529, allocations: 20.59 kB / 0.5266 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01535/0.4683, allocations: 7.411 MB / 0.5339 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.4685, allocations: 89.38 kB / 0.534 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003276/0.4688, allocations: 253.6 kB / 0.5342 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00853/0.4774, allocations: 4.628 MB / 0.5387 GB, free: 5.355 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4774, allocations: 7.875 kB / 0.5387 GB, free: 5.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4774, allocations: 0 / 0.5387 GB, free: 5.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.4774, allocations: 4 kB / 0.5387 GB, free: 5.344 MB / 382.1 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.002734/0.4802, allocations: 1.244 MB / 0.5399 GB, free: 4.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4802, allocations: 10.78 kB / 0.54 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.525e-05/0.4803, allocations: 69 kB / 0.54 GB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001807/0.4821, allocations: 252.7 kB / 0.5403 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003971/0.4825, allocations: 401.4 kB / 0.5406 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.4825, allocations: 27.03 kB / 0.5407 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.4826, allocations: 28.72 kB / 0.5407 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.484, allocations: 0.6308 MB / 0.5413 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.4841, allocations: 3.375 kB / 0.5413 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.4841, allocations: 9.781 kB / 0.5413 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.4841, allocations: 8.969 kB / 0.5413 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/0.4857, allocations: 0.6023 MB / 0.5419 GB, free: 3.223 MB / 382.1 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.002519/0.4882, allocations: 2.662 MB / 0.5445 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.4896, allocations: 489.1 kB / 0.545 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004025/0.49, allocations: 213.8 kB / 0.5452 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05103/0.5411, allocations: 26.98 MB / 0.5715 GB, free: 2.867 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.5411, allocations: 38.5 kB / 0.5716 GB, free: 2.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.276e-06/0.5412, allocations: 11.98 kB / 0.5716 GB, free: 2.809 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003015/0.5442, allocations: 0.8721 MB / 0.5724 GB, free: 1.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.433e-05/0.5443, allocations: 106.8 kB / 0.5725 GB, free: 1.801 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000495/0.5448, allocations: 381.6 kB / 0.5729 GB, free: 1.422 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.5448, allocations: 29.7 kB / 0.5729 GB, free: 1.387 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.545, allocations: 216.1 kB / 0.5731 GB, free: 1.172 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.244e-05/0.5451, allocations: 86.44 kB / 0.5732 GB, free: 1.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.847e-05/0.5452, allocations: 33.7 kB / 0.5733 GB, free: 1.051 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.5453, allocations: 346.8 kB / 0.5736 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004526/0.5457, allocations: 175.9 kB / 0.5738 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005163/0.5463, allocations: 283.8 kB / 0.574 GB, free: 216 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009929/0.5473, allocations: 441 kB / 0.5744 GB, free: 15.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5473, allocations: 3.938 kB / 0.5745 GB, free: 15.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001192/0.5485, allocations: 0.5086 MB / 0.5749 GB, free: 15.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/0.5486, allocations: 166.6 kB / 0.5751 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5487, allocations: 8 kB / 0.5751 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.5487, allocations: 4 kB / 0.5751 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.5491, allocations: 107.9 kB / 0.5752 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.5491, allocations: 4 kB / 0.5752 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005027/0.5496, allocations: 81.02 kB / 0.5753 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.5497, allocations: 19.94 kB / 0.5753 GB, free: 14.81 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/0.5497, allocations: 4 kB / 0.5753 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001044/0.5508, allocations: 451.7 kB / 0.5758 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.5508, allocations: 256 / 0.5758 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.142e-06/0.5508, allocations: 8 kB / 0.5758 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000385/0.5512, allocations: 107.9 kB / 0.5759 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.5512, allocations: 4 kB / 0.5759 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003784/0.5516, allocations: 63.7 kB / 0.5759 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.5516, allocations: 19.98 kB / 0.576 GB, free: 14.17 MB / 430.1 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,SinkP1.medium.phase,SourceP1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.5519, allocations: 244.9 kB / 0.5762 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.245e-05/0.552, allocations: 43.47 kB / 0.5762 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002503/0.5545, allocations: 2.002 MB / 0.5782 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.42e-05/0.5545, allocations: 27.95 kB / 0.5782 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.5545, allocations: 0 / 0.5782 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5545, allocations: 3.984 kB / 0.5782 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.5556, allocations: 1.054 MB / 0.5792 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.5556, allocations: 7.938 kB / 0.5792 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.556, allocations: 95.86 kB / 0.5793 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.556, allocations: 0 / 0.5793 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.556, allocations: 8 kB / 0.5793 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.556, allocations: 0 / 0.5793 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.556, allocations: 0 / 0.5793 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.5575, allocations: 1.164 MB / 0.5805 GB, free: 9.461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.5578, allocations: 271.3 kB / 0.5807 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.227e-05/0.5578, allocations: 4 kB / 0.5807 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.5582, allocations: 47.91 kB / 0.5808 GB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.5583, allocations: 31.95 kB / 0.5808 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.5583, allocations: 15.98 kB / 0.5808 GB, free: 9.078 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000413/0.5587, allocations: 374.8 kB / 0.5812 GB, free: 8.715 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5587, allocations: 4 kB / 0.5812 GB, free: 8.711 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003195/0.5619, allocations: 1.155 MB / 0.5823 GB, free: 7.555 MB / 430.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006982/0.5689, allocations: 2.877 MB / 0.5851 GB, free: 4.762 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.5707, allocations: 0.8983 MB / 0.586 GB, free: 3.867 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.5707, allocations: 0 / 0.586 GB, free: 3.867 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.5714, allocations: 0.5448 MB / 0.5865 GB, free: 3.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.5727, allocations: 222 kB / 0.5868 GB, free: 3.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009366/0.5821, allocations: 5.861 MB / 0.5925 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.5826, allocations: 0.9833 MB / 0.5934 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009286/0.5836, allocations: 0.6011 MB / 0.594 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.5839, allocations: 287.2 kB / 0.5943 GB, free: 11.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.584, allocations: 0 / 0.5943 GB, free: 11.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07649/0.6604, allocations: 48.24 MB / 0.6414 GB, free: 11.14 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002094/0.6607, allocations: 256.1 kB / 0.6417 GB, free: 10.88 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.178/4.839, allocations: 0 / 0.6417 GB, free: 10.88 MB / 494.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches