Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 109.3 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 194 kB / 18.12 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.8 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.199/0.199, allocations: 44.19 MB / 336.1 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 64.78 kB / 407.8 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.1006, allocations: 60.82 MB / 468.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03162/0.1322, allocations: 28.97 MB / 497.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.1503, allocations: 14.28 MB / 0.4999 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007691/0.1511, allocations: 7.938 kB / 0.4999 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.1521, allocations: 218.8 kB / 0.5001 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009956/0.1621, allocations: 2.924 MB / 0.503 GB, free: 172 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1977/0.3599, allocations: 1.966 MB / 0.5049 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.3613, allocations: 1.134 MB / 0.506 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003766/0.3617, allocations: 215.9 kB / 0.5062 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000759/0.3624, allocations: 402.9 kB / 0.5066 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.3628, allocations: 269.1 kB / 0.5068 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.416e-05/0.3628, allocations: 17.31 kB / 0.5069 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01432/0.3772, allocations: 7.122 MB / 0.5138 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002513/0.3775, allocations: 88.92 kB / 0.5139 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004601/0.3779, allocations: 204 kB / 0.5141 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.3894, allocations: 4.408 MB / 0.5184 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3895, allocations: 0 / 0.5184 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3895, allocations: 0 / 0.5184 GB, free: 13.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.3895, allocations: 0 / 0.5184 GB, free: 13.47 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004186/0.3937, allocations: 1.232 MB / 0.5196 GB, free: 12.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.3937, allocations: 13.81 kB / 0.5196 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.539e-05/0.3938, allocations: 64.81 kB / 0.5197 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/0.3956, allocations: 218.4 kB / 0.5199 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004693/0.3961, allocations: 361.7 kB / 0.5202 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.3962, allocations: 24.12 kB / 0.5202 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.703e-05/0.3962, allocations: 29.28 kB / 0.5203 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.3977, allocations: 0.5812 MB / 0.5208 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3977, allocations: 1.094 kB / 0.5208 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.555e-05/0.3978, allocations: 13.97 kB / 0.5209 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.3978, allocations: 7.969 kB / 0.5209 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.3994, allocations: 0.5275 MB / 0.5214 GB, free: 12.07 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.002596/0.402, allocations: 2.625 MB / 0.5239 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.4035, allocations: 458.1 kB / 0.5244 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004016/0.404, allocations: 192.4 kB / 0.5246 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0446/0.4486, allocations: 24.21 MB / 0.5482 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/0.4487, allocations: 45.25 kB / 0.5483 GB, free: 4.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.4487, allocations: 3.938 kB / 0.5483 GB, free: 4.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002972/0.4516, allocations: 0.7907 MB / 0.549 GB, free: 4.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.4517, allocations: 102.8 kB / 0.5491 GB, free: 4.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.4521, allocations: 311.8 kB / 0.5494 GB, free: 3.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.296e-05/0.4522, allocations: 29.58 kB / 0.5494 GB, free: 3.883 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.4524, allocations: 208.9 kB / 0.5496 GB, free: 3.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.176e-05/0.4525, allocations: 91.22 kB / 0.5497 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.4526, allocations: 70.62 kB / 0.5498 GB, free: 3.602 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4527, allocations: 340.5 kB / 0.5501 GB, free: 3.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003902/0.4531, allocations: 139.9 kB / 0.5503 GB, free: 3.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004537/0.4536, allocations: 232.6 kB / 0.5505 GB, free: 2.957 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007606/0.4544, allocations: 361.9 kB / 0.5508 GB, free: 2.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4544, allocations: 0 / 0.5508 GB, free: 2.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009788/0.4554, allocations: 427.1 kB / 0.5512 GB, free: 2.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4554, allocations: 8.031 kB / 0.5512 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.4554, allocations: 4 kB / 0.5512 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.4554, allocations: 7.938 kB / 0.5513 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/0.4558, allocations: 74.02 kB / 0.5513 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.4558, allocations: 11.08 kB / 0.5513 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003631/0.4562, allocations: 61.28 kB / 0.5514 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.4562, allocations: 15.25 kB / 0.5514 GB, free: 2.188 MB / 398.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.0001991/0.4564, allocations: 162.4 kB / 0.5516 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.4565, allocations: 35.53 kB / 0.5516 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002433/0.459, allocations: 1.902 MB / 0.5535 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.471e-05/0.459, allocations: 39.88 kB / 0.5535 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4591, allocations: 0 / 0.5535 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4591, allocations: 0 / 0.5535 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.4602, allocations: 1.01 MB / 0.5545 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4603, allocations: 4 kB / 0.5545 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003193/0.4606, allocations: 72.06 kB / 0.5546 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.4606, allocations: 0 / 0.5546 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.4606, allocations: 8 kB / 0.5546 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.4606, allocations: 3.938 kB / 0.5546 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4606, allocations: 3.844 kB / 0.5546 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.4622, allocations: 1.08 MB / 0.5556 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/0.4624, allocations: 163.9 kB / 0.5558 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.673e-05/0.4625, allocations: 23.75 kB / 0.5558 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.4629, allocations: 39.84 kB / 0.5558 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.463, allocations: 31.95 kB / 0.5559 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.463, allocations: 16.86 kB / 0.5559 GB, free: 14.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003793/0.4634, allocations: 323.1 kB / 0.5562 GB, free: 13.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4634, allocations: 0 / 0.5562 GB, free: 13.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004035/0.4675, allocations: 0.9877 MB / 0.5572 GB, free: 12.87 MB / 414.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.009411/0.4769, allocations: 2.708 MB / 0.5598 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.4783, allocations: 0.5894 MB / 0.5604 GB, free: 9.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.4783, allocations: 3.469 kB / 0.5604 GB, free: 9.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007751/0.4791, allocations: 0.5134 MB / 0.5609 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.4806, allocations: 203.5 kB / 0.5611 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.4912, allocations: 5.338 MB / 0.5663 GB, free: 3.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005818/0.4918, allocations: 0.9638 MB / 0.5672 GB, free: 2.527 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005752/0.4924, allocations: 264.3 kB / 0.5675 GB, free: 2.277 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/0.4928, allocations: 255.3 kB / 0.5677 GB, free: 2.027 MB / 414.1 MB Notification: Performance of SimCode: time 2.946e-06/0.4928, allocations: 4 kB / 0.5677 GB, free: 2.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07568/0.5685, allocations: 45.81 MB / 0.6125 GB, free: 4.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/0.5688, allocations: 262.7 kB / 0.6127 GB, free: 4.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.175/4.744, allocations: 0 / 0.6127 GB, free: 4.18 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches