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.00138/0.00138, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.202/0.202, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 76.56 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 62.45 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03176/0.1441, allocations: 28.25 MB / 0.4965 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1966/0.3408, allocations: 13.29 MB / 0.5094 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002856/0.3411, allocations: 11.88 kB / 0.5095 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006242/0.3418, allocations: 249.2 kB / 0.5097 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008739/0.3505, allocations: 3.664 MB / 0.5133 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005486/0.356, allocations: 2.374 MB / 0.5156 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001094/0.3571, allocations: 0.8925 MB / 0.5165 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003389/0.3575, allocations: 245 kB / 0.5167 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006413/0.3581, allocations: 448.9 kB / 0.5171 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000311/0.3585, allocations: 265.7 kB / 0.5174 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.054e-05/0.3585, allocations: 32.5 kB / 0.5174 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01377/0.3723, allocations: 7.072 MB / 0.5243 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.3725, allocations: 95.58 kB / 0.5244 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003679/0.3729, allocations: 221 kB / 0.5246 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008749/0.3816, allocations: 4.42 MB / 0.5289 GB, free: 8.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3817, allocations: 4 kB / 0.5289 GB, free: 8.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3817, allocations: 0 / 0.5289 GB, free: 8.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3817, allocations: 0 / 0.5289 GB, free: 8.109 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.002668/0.3844, allocations: 1.225 MB / 0.5301 GB, free: 7.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.3844, allocations: 9.812 kB / 0.5301 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.416e-05/0.3845, allocations: 65.11 kB / 0.5302 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/0.3861, allocations: 223.3 kB / 0.5304 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.3865, allocations: 365.3 kB / 0.5308 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.3865, allocations: 27.72 kB / 0.5308 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/0.3866, allocations: 30.56 kB / 0.5308 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.3879, allocations: 0.5821 MB / 0.5314 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3879, allocations: 1.406 kB / 0.5314 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.643e-05/0.3879, allocations: 11.94 kB / 0.5314 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.3879, allocations: 8 kB / 0.5314 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.3894, allocations: 0.5281 MB / 0.5319 GB, free: 6.059 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.002223/0.3916, allocations: 2.63 MB / 0.5345 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.3929, allocations: 467.4 kB / 0.5349 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.3933, allocations: 184.3 kB / 0.5351 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04887/0.4422, allocations: 26.77 MB / 0.5613 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.4423, allocations: 34.56 kB / 0.5613 GB, free: 8.441 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.864e-06/0.4423, allocations: 4 kB / 0.5613 GB, free: 8.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.00277/0.4451, allocations: 0.7939 MB / 0.5621 GB, free: 7.637 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.4452, allocations: 110.8 kB / 0.5622 GB, free: 7.504 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.4455, allocations: 304.5 kB / 0.5625 GB, free: 7.203 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.4456, allocations: 37.64 kB / 0.5625 GB, free: 7.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.4457, allocations: 214.9 kB / 0.5627 GB, free: 6.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.322e-05/0.4458, allocations: 80.64 kB / 0.5628 GB, free: 6.871 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.4459, allocations: 65.69 kB / 0.5628 GB, free: 6.801 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.446, allocations: 346.8 kB / 0.5632 GB, free: 6.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004001/0.4464, allocations: 141.7 kB / 0.5633 GB, free: 6.316 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004503/0.4469, allocations: 230.9 kB / 0.5635 GB, free: 6.051 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007902/0.4477, allocations: 366.3 kB / 0.5639 GB, free: 5.664 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.4477, allocations: 4 kB / 0.5639 GB, free: 5.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001016/0.4487, allocations: 416.8 kB / 0.5643 GB, free: 5.246 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.4488, allocations: 8 kB / 0.5643 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.4488, allocations: 4 kB / 0.5643 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4488, allocations: 7.938 kB / 0.5643 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.4491, allocations: 79.83 kB / 0.5644 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.4491, allocations: 8.297 kB / 0.5644 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.4495, allocations: 51.58 kB / 0.5644 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.4495, allocations: 19.97 kB / 0.5645 GB, free: 5.07 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.0001913/0.4497, allocations: 153.8 kB / 0.5646 GB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.441e-05/0.4498, allocations: 35.62 kB / 0.5646 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/0.4521, allocations: 1.901 MB / 0.5665 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-05/0.4522, allocations: 31.89 kB / 0.5665 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.4522, allocations: 0 / 0.5665 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.4522, allocations: 11.98 kB / 0.5665 GB, free: 2.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009824/0.4532, allocations: 1.013 MB / 0.5675 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.4532, allocations: 3.984 kB / 0.5675 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.4535, allocations: 63.94 kB / 0.5676 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.4535, allocations: 0 / 0.5676 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.4535, allocations: 12 kB / 0.5676 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.4535, allocations: 7.875 kB / 0.5676 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.4535, allocations: 5.5 kB / 0.5676 GB, free: 1.785 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.4549, allocations: 1.077 MB / 0.5687 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.4551, allocations: 163.9 kB / 0.5688 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.986e-05/0.4552, allocations: 19.75 kB / 0.5688 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.4554, allocations: 31.91 kB / 0.5689 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.099e-05/0.4555, allocations: 39.88 kB / 0.5689 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.4556, allocations: 12 kB / 0.5689 GB, free: 420 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003268/0.4559, allocations: 327.1 kB / 0.5692 GB, free: 96 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4559, allocations: 0 / 0.5692 GB, free: 96 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003006/0.4589, allocations: 0.9955 MB / 0.5702 GB, free: 15.1 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.006898/0.4658, allocations: 2.704 MB / 0.5728 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.4673, allocations: 0.6143 MB / 0.5734 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4673, allocations: 4 kB / 0.5734 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006765/0.468, allocations: 0.507 MB / 0.5739 GB, free: 11.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.4692, allocations: 226.3 kB / 0.5742 GB, free: 11.13 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008414/0.4777, allocations: 5.012 MB / 0.5791 GB, free: 5.988 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.4782, allocations: 0.956 MB / 0.58 GB, free: 5.008 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005079/0.4787, allocations: 278.8 kB / 0.5803 GB, free: 4.738 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.479, allocations: 259.3 kB / 0.5805 GB, free: 4.484 MB / 430.1 MB Notification: Performance of SimCode: time 7.62e-07/0.479, allocations: 0 / 0.5805 GB, free: 4.484 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07577/0.5548, allocations: 46.59 MB / 0.626 GB, free: 6.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.593/10.15, allocations: 3.875 kB / 0.626 GB, free: 6.02 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