Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_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.0006612/0.0006614, allocations: 102.4 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008728/0.0008729, allocations: 180.4 kB / 16.92 MB, free: 6.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.4 MB / 223.1 MB, free: 5.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3427/0.3427, allocations: 43.57 MB / 315 MB, free: 8.641 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004868/0.0004868, allocations: 12 kB / 384.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1083, allocations: 58.87 MB / 443.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2384/0.3467, allocations: 28.29 MB / 471.8 MB, free: 32.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.3601, allocations: 14.02 MB / 485.9 MB, free: 24.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005014/0.3607, allocations: 14.47 kB / 485.9 MB, free: 24.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007055/0.3614, allocations: 223.9 kB / 486.1 MB, free: 24.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.3714, allocations: 2.921 MB / 489 MB, free: 23.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005788/0.3773, allocations: 1.963 MB / 491 MB, free: 22.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.3784, allocations: 1.139 MB / 492.1 MB, free: 21.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003059/0.3787, allocations: 200.5 kB / 492.3 MB, free: 21.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006073/0.3793, allocations: 397.8 kB / 492.7 MB, free: 21.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.3796, allocations: 266.1 kB / 493 MB, free: 21.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.727e-05/0.3796, allocations: 19.91 kB / 493 MB, free: 21.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01295/0.3926, allocations: 7.112 MB / 0.4884 GB, free: 19.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.3928, allocations: 82.09 kB / 0.4884 GB, free: 19.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003856/0.3932, allocations: 222.5 kB / 0.4887 GB, free: 19.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01532/0.4086, allocations: 4.382 MB / 0.4929 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4086, allocations: 0 / 0.4929 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4086, allocations: 1.125 kB / 0.4929 GB, free: 18.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.4086, allocations: 4 kB / 0.4929 GB, free: 18.49 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.005716/0.4143, allocations: 1.153 MB / 0.4941 GB, free: 17.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.4144, allocations: 9.188 kB / 0.4941 GB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.166e-05/0.4145, allocations: 68.72 kB / 0.4941 GB, free: 17.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.4162, allocations: 217.6 kB / 0.4943 GB, free: 17.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004884/0.4167, allocations: 372 kB / 0.4947 GB, free: 17.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/0.4168, allocations: 31.89 kB / 0.4947 GB, free: 17.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/0.4168, allocations: 31.64 kB / 0.4948 GB, free: 17.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.4185, allocations: 0.6076 MB / 0.4954 GB, free: 17.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4185, allocations: 1.188 kB / 0.4954 GB, free: 17.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.618e-05/0.4186, allocations: 16.73 kB / 0.4954 GB, free: 17.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.4186, allocations: 8.031 kB / 0.4954 GB, free: 17.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.4202, allocations: 0.5621 MB / 0.4959 GB, free: 16.91 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.002615/0.4228, allocations: 2.639 MB / 0.4985 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.4244, allocations: 0.4915 MB / 0.499 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.4248, allocations: 210 kB / 0.4992 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04772/0.4726, allocations: 24.42 MB / 0.523 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.4726, allocations: 35.25 kB / 0.5231 GB, free: 11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/0.4726, allocations: 0 / 0.5231 GB, free: 11 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002858/0.4755, allocations: 0.847 MB / 0.5239 GB, free: 10.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/0.4756, allocations: 106.8 kB / 0.524 GB, free: 10.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.4759, allocations: 304.5 kB / 0.5243 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.476, allocations: 37.69 kB / 0.5243 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.4761, allocations: 216.1 kB / 0.5245 GB, free: 9.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.968e-05/0.4762, allocations: 78.84 kB / 0.5246 GB, free: 9.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.515e-05/0.4763, allocations: 33.7 kB / 0.5246 GB, free: 9.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.4764, allocations: 338.8 kB / 0.525 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/0.4768, allocations: 159.5 kB / 0.5251 GB, free: 9.285 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004709/0.4773, allocations: 247 kB / 0.5253 GB, free: 9.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008233/0.4781, allocations: 383.3 kB / 0.5257 GB, free: 8.598 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4782, allocations: 4 kB / 0.5257 GB, free: 8.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009791/0.4791, allocations: 461.6 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.4792, allocations: 4 kB / 0.5262 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.4792, allocations: 4 kB / 0.5262 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.4792, allocations: 7.938 kB / 0.5262 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003247/0.4795, allocations: 92.19 kB / 0.5263 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.4796, allocations: 8.641 kB / 0.5263 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.4799, allocations: 63.66 kB / 0.5263 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.48, allocations: 13.06 kB / 0.5263 GB, free: 7.949 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.0001762/0.4801, allocations: 157.8 kB / 0.5265 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.567e-05/0.4802, allocations: 39.56 kB / 0.5265 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/0.4826, allocations: 1.93 MB / 0.5284 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.195e-05/0.4827, allocations: 31.89 kB / 0.5284 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4827, allocations: 0 / 0.5284 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.4827, allocations: 3.938 kB / 0.5284 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009574/0.4837, allocations: 1.028 MB / 0.5295 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.4837, allocations: 4 kB / 0.5295 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.484, allocations: 75.88 kB / 0.5295 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.484, allocations: 0 / 0.5295 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.484, allocations: 11.98 kB / 0.5295 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.484, allocations: 7.938 kB / 0.5295 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.484, allocations: 4 kB / 0.5296 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.4855, allocations: 1.105 MB / 0.5306 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.4857, allocations: 219.6 kB / 0.5308 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.299e-05/0.4857, allocations: 4 kB / 0.5308 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.486, allocations: 55.73 kB / 0.5309 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.189e-05/0.4861, allocations: 31.95 kB / 0.5309 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.4861, allocations: 12 kB / 0.5309 GB, free: 3.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003426/0.4865, allocations: 331.1 kB / 0.5313 GB, free: 2.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4865, allocations: 0 / 0.5313 GB, free: 2.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004465/0.491, allocations: 0.9838 MB / 0.5322 GB, free: 1.828 MB / 398.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.00734/0.4983, allocations: 2.739 MB / 0.5349 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.4995, allocations: 0.6301 MB / 0.5355 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4995, allocations: 4 kB / 0.5355 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006754/0.5002, allocations: 0.5207 MB / 0.536 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.5014, allocations: 205.7 kB / 0.5362 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008486/0.5099, allocations: 5.439 MB / 0.5415 GB, free: 8.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.5104, allocations: 0.9599 MB / 0.5425 GB, free: 7.152 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004799/0.5109, allocations: 278.9 kB / 0.5427 GB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.5112, allocations: 255.3 kB / 0.543 GB, free: 6.633 MB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5112, allocations: 0 / 0.543 GB, free: 6.633 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07195/0.5832, allocations: 45.61 MB / 0.5875 GB, free: 9.02 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/0.5834, allocations: 254.3 kB / 0.5878 GB, free: 8.766 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.902/4.486, allocations: 0 / 0.5878 GB, free: 8.766 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches