Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001164, allocations: 206.3 kB / 18.29 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.366/1.366, allocations: 227.7 MB / 246.8 MB, free: 9.695 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1853/0.1853, allocations: 46.18 MB / 345.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002837/0.0002838, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1074, allocations: 63.56 MB / 483.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02855/0.136, allocations: 28.43 MB / 0.4996 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2276/0.3636, allocations: 14.02 MB / 0.5133 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003684/0.364, allocations: 14.25 kB / 0.5133 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000714/0.3647, allocations: 215.2 kB / 0.5135 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00936/0.3741, allocations: 2.928 MB / 0.5164 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005535/0.3797, allocations: 1.977 MB / 0.5183 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.3811, allocations: 1.135 MB / 0.5194 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.3815, allocations: 209.9 kB / 0.5196 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006514/0.3821, allocations: 399.3 kB / 0.52 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.3824, allocations: 262.9 kB / 0.5203 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.3825, allocations: 19.72 kB / 0.5203 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01557/0.398, allocations: 7.129 MB / 0.5272 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.3983, allocations: 84.7 kB / 0.5273 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003834/0.3987, allocations: 229.8 kB / 0.5275 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009159/0.4078, allocations: 4.385 MB / 0.5318 GB, free: 8.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4079, allocations: 1.375 kB / 0.5318 GB, free: 8.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4079, allocations: 0 / 0.5318 GB, free: 8.367 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.4079, allocations: 0 / 0.5318 GB, free: 8.367 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.00288/0.4108, allocations: 1.166 MB / 0.533 GB, free: 7.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.4108, allocations: 9.688 kB / 0.533 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.623e-05/0.4109, allocations: 64.98 kB / 0.533 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.4126, allocations: 218.8 kB / 0.5332 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.4129, allocations: 375.9 kB / 0.5336 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/0.413, allocations: 26.94 kB / 0.5336 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.413, allocations: 26.75 kB / 0.5337 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.4144, allocations: 0.6049 MB / 0.5342 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.4144, allocations: 6.25 kB / 0.5343 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.4145, allocations: 14.5 kB / 0.5343 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4145, allocations: 6.875 kB / 0.5343 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.416, allocations: 0.5647 MB / 0.5348 GB, free: 6.676 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.002227/0.4182, allocations: 2.631 MB / 0.5374 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.4196, allocations: 496.3 kB / 0.5379 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000406/0.4201, allocations: 199.5 kB / 0.5381 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04846/0.4685, allocations: 27 MB / 0.5644 GB, free: 8.793 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.4686, allocations: 37.88 kB / 0.5645 GB, free: 8.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.4686, allocations: 3.938 kB / 0.5645 GB, free: 8.746 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002957/0.4716, allocations: 0.8565 MB / 0.5653 GB, free: 7.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.612e-05/0.4717, allocations: 106.8 kB / 0.5654 GB, free: 7.754 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003895/0.4721, allocations: 316.5 kB / 0.5657 GB, free: 7.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.4721, allocations: 25.7 kB / 0.5657 GB, free: 7.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.4723, allocations: 206.3 kB / 0.5659 GB, free: 7.207 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.419e-05/0.4723, allocations: 86.67 kB / 0.566 GB, free: 7.125 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-05/0.4724, allocations: 29.7 kB / 0.566 GB, free: 7.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4725, allocations: 346.8 kB / 0.5664 GB, free: 6.742 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/0.4729, allocations: 151.9 kB / 0.5665 GB, free: 6.594 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/0.4734, allocations: 252.7 kB / 0.5668 GB, free: 6.309 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008331/0.4743, allocations: 390.7 kB / 0.5671 GB, free: 5.895 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.4743, allocations: 4 kB / 0.5671 GB, free: 5.891 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001037/0.4753, allocations: 449 kB / 0.5676 GB, free: 5.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4754, allocations: 12.03 kB / 0.5676 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.4754, allocations: 0 / 0.5676 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.4754, allocations: 11.94 kB / 0.5676 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.4758, allocations: 83.88 kB / 0.5677 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4758, allocations: 4 kB / 0.5677 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003749/0.4762, allocations: 67.59 kB / 0.5677 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.4762, allocations: 19.98 kB / 0.5677 GB, free: 5.25 MB / 414.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.000236/0.4765, allocations: 153.8 kB / 0.5679 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.264e-05/0.4766, allocations: 39.55 kB / 0.5679 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002585/0.4791, allocations: 1.943 MB / 0.5698 GB, free: 3.109 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-05/0.4792, allocations: 31.89 kB / 0.5699 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4792, allocations: 0 / 0.5699 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.4792, allocations: 3.984 kB / 0.5699 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.4803, allocations: 1.018 MB / 0.5709 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.4803, allocations: 0 / 0.5709 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.4807, allocations: 79.88 kB / 0.5709 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.4807, allocations: 4 kB / 0.5709 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.4807, allocations: 8 kB / 0.5709 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4807, allocations: 10.94 kB / 0.571 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4807, allocations: 0 / 0.571 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.4824, allocations: 1.104 MB / 0.572 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.4827, allocations: 219.5 kB / 0.5722 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.339e-05/0.4827, allocations: 8 kB / 0.5723 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/0.4831, allocations: 47.81 kB / 0.5723 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.303e-05/0.4832, allocations: 31.95 kB / 0.5723 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.4832, allocations: 15.98 kB / 0.5723 GB, free: 468 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004382/0.4837, allocations: 323.1 kB / 0.5727 GB, free: 144 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4837, allocations: 0 / 0.5727 GB, free: 144 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003654/0.4873, allocations: 0.9955 MB / 0.5736 GB, free: 15.14 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: 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.008076/0.4954, allocations: 2.733 MB / 0.5763 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.497, allocations: 0.6267 MB / 0.5769 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.497, allocations: 0 / 0.5769 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007534/0.4977, allocations: 0.5259 MB / 0.5774 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.4991, allocations: 205.6 kB / 0.5776 GB, free: 11.13 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009755/0.5089, allocations: 5.432 MB / 0.5829 GB, free: 5.559 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006487/0.5096, allocations: 0.9677 MB / 0.5839 GB, free: 4.559 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006099/0.5102, allocations: 272.3 kB / 0.5841 GB, free: 4.301 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003502/0.5106, allocations: 255.3 kB / 0.5844 GB, free: 4.051 MB / 430.1 MB Notification: Performance of SimCode: time 5.1e-06/0.5106, allocations: 0 / 0.5844 GB, free: 4.051 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07409/0.5847, allocations: 45.71 MB / 0.629 GB, free: 6.52 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.5849, allocations: 263.4 kB / 0.6293 GB, free: 6.262 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.065/4.65, allocations: 4 kB / 0.6293 GB, free: 6.258 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches