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.0007861/0.000786, allocations: 96.72 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009735/0.0009735, allocations: 209.9 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.316/1.316, allocations: 227.7 MB / 246.8 MB, free: 9.578 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 46.19 MB / 345.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002416/0.0002416, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09567, allocations: 63.57 MB / 483.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02868/0.1244, allocations: 28.44 MB / 0.4996 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2132/0.3376, allocations: 14.03 MB / 0.5133 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004039/0.3381, allocations: 14.88 kB / 0.5133 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006639/0.3387, allocations: 219.6 kB / 0.5136 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009467/0.3482, allocations: 2.922 MB / 0.5164 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005459/0.3537, allocations: 1.978 MB / 0.5183 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.3551, allocations: 1.141 MB / 0.5195 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003358/0.3554, allocations: 213.9 kB / 0.5197 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006724/0.3561, allocations: 400.7 kB / 0.52 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003121/0.3564, allocations: 269.6 kB / 0.5203 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.133e-05/0.3565, allocations: 15.47 kB / 0.5203 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01437/0.3708, allocations: 7.131 MB / 0.5273 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.3711, allocations: 92.19 kB / 0.5274 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003289/0.3714, allocations: 228.3 kB / 0.5276 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.383, allocations: 4.39 MB / 0.5319 GB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3831, allocations: 1.469 kB / 0.5319 GB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.3831, allocations: 0 / 0.5319 GB, free: 8.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.3831, allocations: 2.906 kB / 0.5319 GB, free: 8.348 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.003579/0.3867, allocations: 1.184 MB / 0.533 GB, free: 7.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3868, allocations: 9.625 kB / 0.533 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.3868, allocations: 63.86 kB / 0.5331 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.3885, allocations: 220.8 kB / 0.5333 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.3889, allocations: 365.6 kB / 0.5337 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.3889, allocations: 28.69 kB / 0.5337 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.3889, allocations: 27.88 kB / 0.5337 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.3904, allocations: 0.6183 MB / 0.5343 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3905, allocations: 1.375 kB / 0.5343 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.3905, allocations: 19.03 kB / 0.5343 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.3905, allocations: 8.344 kB / 0.5343 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.3922, allocations: 0.5913 MB / 0.5349 GB, free: 6.637 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.3944, allocations: 2.637 MB / 0.5375 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.3959, allocations: 0.4921 MB / 0.538 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.3963, allocations: 227.5 kB / 0.5382 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04953/0.4459, allocations: 26.98 MB / 0.5645 GB, free: 8.691 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.446, allocations: 36.58 kB / 0.5646 GB, free: 8.648 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.605e-06/0.446, allocations: 4 kB / 0.5646 GB, free: 8.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003184/0.4492, allocations: 0.8994 MB / 0.5655 GB, free: 7.738 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.4492, allocations: 102.8 kB / 0.5656 GB, free: 7.613 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.4497, allocations: 320.4 kB / 0.5659 GB, free: 7.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/0.4497, allocations: 29.7 kB / 0.5659 GB, free: 7.262 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.4499, allocations: 206.8 kB / 0.5661 GB, free: 7.059 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.94e-05/0.45, allocations: 90.62 kB / 0.5662 GB, free: 6.969 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/0.45, allocations: 33.7 kB / 0.5662 GB, free: 6.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4502, allocations: 342.8 kB / 0.5665 GB, free: 6.586 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.4507, allocations: 171.9 kB / 0.5667 GB, free: 6.418 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005704/0.4513, allocations: 268.1 kB / 0.567 GB, free: 6.121 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009453/0.4522, allocations: 417.1 kB / 0.5674 GB, free: 5.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.4522, allocations: 0 / 0.5674 GB, free: 5.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0012/0.4535, allocations: 476.8 kB / 0.5678 GB, free: 5.207 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.4535, allocations: 8.312 kB / 0.5678 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.4535, allocations: 4 kB / 0.5678 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.4535, allocations: 11.94 kB / 0.5678 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.4539, allocations: 91.88 kB / 0.5679 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.454, allocations: 7.984 kB / 0.5679 GB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.4544, allocations: 67.72 kB / 0.568 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.532e-05/0.4545, allocations: 15.98 kB / 0.568 GB, free: 5.004 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.0002271/0.4547, allocations: 157.7 kB / 0.5682 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.373e-05/0.4548, allocations: 35.62 kB / 0.5682 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.4575, allocations: 1.977 MB / 0.5701 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.112e-05/0.4576, allocations: 35.7 kB / 0.5702 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4576, allocations: 0 / 0.5702 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.4576, allocations: 0 / 0.5702 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.4587, allocations: 1.022 MB / 0.5712 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4587, allocations: 4 kB / 0.5712 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003498/0.4591, allocations: 87.81 kB / 0.5712 GB, free: 1.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.4591, allocations: 4 kB / 0.5712 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.4591, allocations: 15.98 kB / 0.5713 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.4592, allocations: 3.938 kB / 0.5713 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4592, allocations: 0 / 0.5713 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.4608, allocations: 1.135 MB / 0.5724 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002544/0.4611, allocations: 215.6 kB / 0.5726 GB, free: 244 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.918e-05/0.4612, allocations: 11.94 kB / 0.5726 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003801/0.4616, allocations: 55.89 kB / 0.5726 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.4617, allocations: 35.89 kB / 0.5727 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.4617, allocations: 11.98 kB / 0.5727 GB, free: 128 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004169/0.4622, allocations: 323.1 kB / 0.573 GB, free: 15.81 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4622, allocations: 0 / 0.573 GB, free: 15.81 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003792/0.466, allocations: 0.9955 MB / 0.574 GB, free: 14.81 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.008028/0.474, allocations: 2.765 MB / 0.5767 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.4754, allocations: 0.6462 MB / 0.5773 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.4755, allocations: 4 kB / 0.5773 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008202/0.4763, allocations: 0.5361 MB / 0.5778 GB, free: 10.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.4776, allocations: 213.6 kB / 0.578 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009386/0.487, allocations: 5.518 MB / 0.5834 GB, free: 5.062 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005348/0.4876, allocations: 0.9638 MB / 0.5844 GB, free: 4.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006025/0.4882, allocations: 280.6 kB / 0.5846 GB, free: 3.805 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003303/0.4886, allocations: 259.3 kB / 0.5849 GB, free: 3.551 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4886, allocations: 0 / 0.5849 GB, free: 3.551 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07465/0.5632, allocations: 45.85 MB / 0.6297 GB, free: 5.883 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002674/0.5635, allocations: 246.4 kB / 0.6299 GB, free: 5.633 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.072/4.636, allocations: 0 / 0.6299 GB, free: 5.633 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