Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 216.6 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2269/0.2269, allocations: 46.92 MB / 360.9 MB, free: 4.254 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002242/0.002242, allocations: 71.91 kB / 0.4962 GB, free: 7.883 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3335, allocations: 66.02 MB / 0.5606 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0377/0.3712, allocations: 28.65 MB / 0.5886 GB, free: 7.73 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01951/0.3908, allocations: 13.39 MB / 0.6017 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004729/0.3912, allocations: 19.81 kB / 0.6017 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009079/0.3921, allocations: 254.4 kB / 0.602 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01066/0.4028, allocations: 3.67 MB / 0.6055 GB, free: 6.352 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006762/0.4096, allocations: 2.395 MB / 0.6079 GB, free: 3.957 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001474/0.411, allocations: 0.908 MB / 0.6088 GB, free: 3.047 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005277/0.4116, allocations: 212.9 kB / 0.609 GB, free: 2.832 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.4126, allocations: 454.2 kB / 0.6094 GB, free: 2.387 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005257/0.4131, allocations: 286.8 kB / 0.6097 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.4132, allocations: 32 kB / 0.6097 GB, free: 2.074 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01558/0.4288, allocations: 7.258 MB / 0.6168 GB, free: 10.8 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.429, allocations: 107.7 kB / 0.6169 GB, free: 10.7 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003558/0.4294, allocations: 223 kB / 0.6171 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.4401, allocations: 4.423 MB / 0.6214 GB, free: 6.047 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4401, allocations: 0 / 0.6214 GB, free: 6.047 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4401, allocations: 4 kB / 0.6214 GB, free: 6.043 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.4401, allocations: 3.938 kB / 0.6214 GB, free: 6.039 MB / 462.1 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.003487/0.4436, allocations: 1.195 MB / 0.6226 GB, free: 4.809 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.4436, allocations: 12.03 kB / 0.6226 GB, free: 4.797 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.4437, allocations: 62.72 kB / 0.6227 GB, free: 4.727 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001792/0.4455, allocations: 216.5 kB / 0.6229 GB, free: 4.516 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006405/0.4462, allocations: 317.2 kB / 0.6232 GB, free: 4.176 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.4462, allocations: 29.03 kB / 0.6232 GB, free: 4.148 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.771e-05/0.4462, allocations: 28.12 kB / 0.6232 GB, free: 4.121 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.4478, allocations: 0.5746 MB / 0.6238 GB, free: 3.508 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.4478, allocations: 11.94 kB / 0.6238 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.4479, allocations: 12 kB / 0.6238 GB, free: 3.484 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.4479, allocations: 8 kB / 0.6238 GB, free: 3.477 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.4495, allocations: 0.5254 MB / 0.6244 GB, free: 2.949 MB / 462.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.003379/0.4529, allocations: 2.523 MB / 0.6268 GB, free: 220 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/0.4545, allocations: 454.1 kB / 0.6272 GB, free: 15.76 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.4549, allocations: 172.7 kB / 0.6274 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04881/0.5037, allocations: 13.15 MB / 0.6403 GB, free: 2.418 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.959e-05/0.5038, allocations: 34.5 kB / 0.6403 GB, free: 2.375 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.654e-06/0.5038, allocations: 0 / 0.6403 GB, free: 2.375 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003344/0.5072, allocations: 0.7897 MB / 0.6411 GB, free: 1.578 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.912e-05/0.5073, allocations: 106.8 kB / 0.6412 GB, free: 1.449 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.5077, allocations: 312.5 kB / 0.6415 GB, free: 1.141 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.827e-05/0.5078, allocations: 29.7 kB / 0.6415 GB, free: 1.105 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.508, allocations: 208.5 kB / 0.6417 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.92e-05/0.5081, allocations: 91.19 kB / 0.6418 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.5082, allocations: 69.69 kB / 0.6418 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.5084, allocations: 338.8 kB / 0.6422 GB, free: 404 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004062/0.5088, allocations: 143.9 kB / 0.6423 GB, free: 260 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005006/0.5093, allocations: 235.9 kB / 0.6425 GB, free: 15.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000843/0.5101, allocations: 350 kB / 0.6429 GB, free: 15.61 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5101, allocations: 0 / 0.6429 GB, free: 15.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001209/0.5114, allocations: 436.9 kB / 0.6433 GB, free: 15.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.5114, allocations: 8 kB / 0.6433 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.5114, allocations: 0 / 0.6433 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.5114, allocations: 7.938 kB / 0.6433 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003471/0.5118, allocations: 83.88 kB / 0.6434 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.5118, allocations: 4 kB / 0.6434 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.5121, allocations: 48.06 kB / 0.6434 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.5122, allocations: 16 kB / 0.6434 GB, free: 15.01 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,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 (35): * Single equations (assignments): 35 * 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.0002207/0.5124, allocations: 161.7 kB / 0.6436 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.5126, allocations: 39.7 kB / 0.6436 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00287/0.5155, allocations: 1.968 MB / 0.6456 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.495e-05/0.5155, allocations: 27.95 kB / 0.6456 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.5155, allocations: 0 / 0.6456 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.5156, allocations: 7.984 kB / 0.6456 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.5169, allocations: 1.015 MB / 0.6466 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.5169, allocations: 0 / 0.6466 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.5172, allocations: 71.88 kB / 0.6466 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.5172, allocations: 4 kB / 0.6466 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-05/0.5173, allocations: 7.938 kB / 0.6467 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.5173, allocations: 4 kB / 0.6467 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.5173, allocations: 3.938 kB / 0.6467 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.5191, allocations: 1.12 MB / 0.6478 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.5192, allocations: 87.16 kB / 0.6478 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.682e-05/0.5193, allocations: 27.78 kB / 0.6479 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.5196, allocations: 27.97 kB / 0.6479 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.955e-05/0.5197, allocations: 31.94 kB / 0.6479 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.5197, allocations: 15.98 kB / 0.6479 GB, free: 10.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004138/0.5201, allocations: 323.1 kB / 0.6482 GB, free: 9.996 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5201, allocations: 0 / 0.6482 GB, free: 9.996 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003217/0.5233, allocations: 1.014 MB / 0.6492 GB, free: 8.98 MB / 494.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: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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 (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.007008/0.5303, allocations: 2.733 MB / 0.6519 GB, free: 6.219 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.5318, allocations: 0.5946 MB / 0.6525 GB, free: 5.625 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.5318, allocations: 0 / 0.6525 GB, free: 5.625 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007456/0.5325, allocations: 421 kB / 0.6529 GB, free: 5.211 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.5338, allocations: 206.5 kB / 0.6531 GB, free: 5.016 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.5442, allocations: 5.015 MB / 0.658 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007889/0.545, allocations: 0.9599 MB / 0.6589 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005821/0.5456, allocations: 274.8 kB / 0.6592 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.5459, allocations: 259.3 kB / 0.6594 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of SimCode: time 7.41e-07/0.5459, allocations: 0 / 0.6594 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/0.6471, allocations: 47.61 MB / 0.7059 GB, free: 14.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.61, allocations: 8 kB / 0.7059 GB, free: 14.9 MB / 0.545 GB " [Timeout remaining time 645] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.147715070983395]