Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007904/0.0007905, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000915/0.0009151, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.155/1.155, allocations: 227.7 MB / 246.8 MB, free: 9.543 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1626/0.1626, allocations: 46.2 MB / 345.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002101/0.0002101, allocations: 8 kB / 419.6 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08355/0.08377, allocations: 63.56 MB / 483.2 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02408/0.1079, allocations: 28.44 MB / 0.4996 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1767/0.2846, allocations: 14.04 MB / 0.5133 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.2849, allocations: 13.48 kB / 0.5134 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005171/0.2854, allocations: 219.3 kB / 0.5136 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006549/0.292, allocations: 2.921 MB / 0.5164 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004365/0.2964, allocations: 1.985 MB / 0.5183 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.2974, allocations: 1.138 MB / 0.5195 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.2977, allocations: 214.4 kB / 0.5197 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005267/0.2982, allocations: 400.1 kB / 0.52 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.2985, allocations: 270.4 kB / 0.5203 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.2985, allocations: 17.97 kB / 0.5203 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01142/0.31, allocations: 7.134 MB / 0.5273 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.542e-05/0.3101, allocations: 80.31 kB / 0.5274 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.3103, allocations: 227.4 kB / 0.5276 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005202/0.3155, allocations: 4.393 MB / 0.5319 GB, free: 8.391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3155, allocations: 0 / 0.5319 GB, free: 8.391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3155, allocations: 3.938 kB / 0.5319 GB, free: 8.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.3155, allocations: 0 / 0.5319 GB, free: 8.387 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.002131/0.3177, allocations: 1.18 MB / 0.533 GB, free: 7.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.3177, allocations: 13.94 kB / 0.533 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.899e-05/0.3178, allocations: 68.31 kB / 0.5331 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.3193, allocations: 220.2 kB / 0.5333 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.3196, allocations: 359.6 kB / 0.5337 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.3196, allocations: 30.47 kB / 0.5337 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.3197, allocations: 25.97 kB / 0.5337 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.321, allocations: 0.6223 MB / 0.5343 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.321, allocations: 1.375 kB / 0.5343 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.3211, allocations: 14.38 kB / 0.5343 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3211, allocations: 6.875 kB / 0.5343 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.3225, allocations: 0.5938 MB / 0.5349 GB, free: 6.645 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.001988/0.3245, allocations: 2.639 MB / 0.5375 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.3259, allocations: 0.5048 MB / 0.538 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000416/0.3263, allocations: 216.9 kB / 0.5382 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04372/0.37, allocations: 26.98 MB / 0.5645 GB, free: 8.656 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.3701, allocations: 38.56 kB / 0.5646 GB, free: 8.609 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.974e-06/0.3701, allocations: 4 kB / 0.5646 GB, free: 8.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002749/0.3729, allocations: 0.8877 MB / 0.5655 GB, free: 7.711 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.3729, allocations: 114.8 kB / 0.5656 GB, free: 7.574 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002962/0.3732, allocations: 320.3 kB / 0.5659 GB, free: 7.258 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.3733, allocations: 29.7 kB / 0.5659 GB, free: 7.223 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.3734, allocations: 208 kB / 0.5661 GB, free: 7.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.3735, allocations: 86.7 kB / 0.5662 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.3735, allocations: 33.7 kB / 0.5662 GB, free: 6.895 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3736, allocations: 342.8 kB / 0.5665 GB, free: 6.551 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004174/0.374, allocations: 163.9 kB / 0.5667 GB, free: 6.391 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.3745, allocations: 268.7 kB / 0.567 GB, free: 6.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008464/0.3754, allocations: 419.1 kB / 0.5674 GB, free: 5.648 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3754, allocations: 0 / 0.5674 GB, free: 5.648 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001002/0.3764, allocations: 476.8 kB / 0.5678 GB, free: 5.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3764, allocations: 8.312 kB / 0.5678 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.3764, allocations: 4 kB / 0.5678 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3764, allocations: 7.938 kB / 0.5678 GB, free: 5.156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.3768, allocations: 99.86 kB / 0.5679 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3768, allocations: 7.938 kB / 0.5679 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.3771, allocations: 59.72 kB / 0.568 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.3772, allocations: 19.98 kB / 0.568 GB, free: 4.973 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: 4 (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.000147/0.3773, allocations: 165.7 kB / 0.5682 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.355e-05/0.3774, allocations: 35.62 kB / 0.5682 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.3796, allocations: 1.971 MB / 0.5701 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.533e-05/0.3797, allocations: 31.89 kB / 0.5702 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.3797, allocations: 4 kB / 0.5702 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3797, allocations: 7.922 kB / 0.5702 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008392/0.3806, allocations: 1.017 MB / 0.5712 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3806, allocations: 0 / 0.5712 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.3809, allocations: 88.73 kB / 0.5712 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.3809, allocations: 11.98 kB / 0.5713 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.3809, allocations: 4 kB / 0.5713 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3809, allocations: 7.938 kB / 0.5713 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3809, allocations: 0 / 0.5713 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.3823, allocations: 1.143 MB / 0.5724 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.3825, allocations: 211.6 kB / 0.5726 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.095e-05/0.3825, allocations: 8.484 kB / 0.5726 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.3828, allocations: 51.91 kB / 0.5726 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.142e-05/0.3829, allocations: 27.95 kB / 0.5727 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.383, allocations: 16.48 kB / 0.5727 GB, free: 100 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003078/0.3833, allocations: 327.1 kB / 0.573 GB, free: 15.78 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3833, allocations: 0 / 0.573 GB, free: 15.78 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002353/0.3856, allocations: 0.9955 MB / 0.574 GB, free: 14.78 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: 18 ($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) * 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.004873/0.3905, allocations: 2.77 MB / 0.5767 GB, free: 12.08 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.3916, allocations: 0.6539 MB / 0.5773 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3916, allocations: 0 / 0.5773 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006696/0.3923, allocations: 0.5362 MB / 0.5778 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.3934, allocations: 197.7 kB / 0.578 GB, free: 10.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006687/0.4001, allocations: 5.517 MB / 0.5834 GB, free: 5.039 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.4005, allocations: 0.9716 MB / 0.5844 GB, free: 4.039 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003999/0.4009, allocations: 284.8 kB / 0.5846 GB, free: 3.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.4012, allocations: 263.3 kB / 0.5849 GB, free: 3.512 MB / 430.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4012, allocations: 0 / 0.5849 GB, free: 3.512 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.163/4.565, allocations: 45.84 MB / 0.6296 GB, free: 5.855 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002915/4.565, allocations: 254.4 kB / 0.6299 GB, free: 5.598 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.574/8.139, allocations: 0 / 0.6299 GB, free: 5.598 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches