Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001033/0.001033, allocations: 199.7 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009142/0.0009141, allocations: 89.97 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2875/0.2875, allocations: 45 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002806/0.0002808, allocations: 8 kB / 470.8 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.289, allocations: 63.1 MB / 0.5214 GB, free: 38.43 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02308/0.3121, allocations: 32.58 MB / 0.5532 GB, free: 12.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01892/0.3311, allocations: 19.96 MB / 0.5727 GB, free: 11.79 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006235/0.3317, allocations: 13.47 kB / 0.5727 GB, free: 11.78 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008924/0.3326, allocations: 220 kB / 0.5729 GB, free: 11.6 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0114/0.3441, allocations: 2.919 MB / 0.5758 GB, free: 9.426 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007421/0.3515, allocations: 1.977 MB / 0.5777 GB, free: 7.957 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001913/0.3534, allocations: 1.145 MB / 0.5788 GB, free: 7.324 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005647/0.354, allocations: 208.4 kB / 0.579 GB, free: 7.195 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001185/0.3552, allocations: 405.8 kB / 0.5794 GB, free: 6.969 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006548/0.3559, allocations: 276.5 kB / 0.5797 GB, free: 6.812 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.356, allocations: 15.69 kB / 0.5797 GB, free: 6.812 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01608/0.3721, allocations: 6.872 MB / 0.5864 GB, free: 1.609 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000241/0.3724, allocations: 79.66 kB / 0.5865 GB, free: 1.531 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004734/0.3729, allocations: 224.8 kB / 0.5867 GB, free: 1.305 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01203/0.3849, allocations: 4.393 MB / 0.591 GB, free: 12.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.385, allocations: 4 kB / 0.591 GB, free: 12.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.385, allocations: 0 / 0.591 GB, free: 12.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.385, allocations: 0 / 0.591 GB, free: 12.9 MB / 410.7 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.003435/0.3885, allocations: 1.177 MB / 0.5921 GB, free: 11.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.3885, allocations: 8.031 kB / 0.5921 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001726/0.3902, allocations: 228.2 kB / 0.5923 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.3908, allocations: 363.3 kB / 0.5927 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.3909, allocations: 21.03 kB / 0.5927 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.3909, allocations: 32.38 kB / 0.5927 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.3925, allocations: 0.6173 MB / 0.5933 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.3925, allocations: 0 / 0.5933 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/0.3926, allocations: 12 kB / 0.5934 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.3926, allocations: 15.98 kB / 0.5934 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.3942, allocations: 0.5875 MB / 0.5939 GB, free: 9.727 MB / 410.7 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.003031/0.3973, allocations: 2.652 MB / 0.5965 GB, free: 6.836 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.3988, allocations: 498.2 kB / 0.597 GB, free: 6.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004804/0.3993, allocations: 216.7 kB / 0.5972 GB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04651/0.4458, allocations: 27 MB / 0.6236 GB, free: 7.727 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/0.4459, allocations: 38.56 kB / 0.6236 GB, free: 7.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/0.4459, allocations: 0 / 0.6236 GB, free: 7.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.002972/0.4489, allocations: 0.8945 MB / 0.6245 GB, free: 6.781 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/0.449, allocations: 106.8 kB / 0.6246 GB, free: 6.652 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003925/0.4494, allocations: 312.4 kB / 0.6249 GB, free: 6.336 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.4495, allocations: 29.7 kB / 0.6249 GB, free: 6.301 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.4496, allocations: 200.2 kB / 0.6251 GB, free: 6.098 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.08e-05/0.4497, allocations: 82.75 kB / 0.6252 GB, free: 6.016 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.4498, allocations: 8 kB / 0.6252 GB, free: 6.008 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.4499, allocations: 346.8 kB / 0.6255 GB, free: 5.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004396/0.4504, allocations: 167.8 kB / 0.6257 GB, free: 5.496 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.4509, allocations: 267.6 kB / 0.6259 GB, free: 5.195 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008569/0.4517, allocations: 409.1 kB / 0.6263 GB, free: 4.762 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.4517, allocations: 0 / 0.6263 GB, free: 4.762 MB / 442.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001061/0.4528, allocations: 487.3 kB / 0.6268 GB, free: 4.281 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.4528, allocations: 8 kB / 0.6268 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4529, allocations: 4 kB / 0.6268 GB, free: 4.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.4529, allocations: 7.938 kB / 0.6268 GB, free: 4.262 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.4533, allocations: 91.88 kB / 0.6269 GB, free: 4.172 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.4533, allocations: 12.09 kB / 0.6269 GB, free: 4.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003778/0.4537, allocations: 67.64 kB / 0.627 GB, free: 4.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.569e-05/0.4537, allocations: 19.94 kB / 0.627 GB, free: 4.074 MB / 442.7 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 (SourceP1.medium.phase,SinkP1.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.0002115/0.4539, allocations: 161.8 kB / 0.6272 GB, free: 3.906 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.31e-05/0.454, allocations: 35.53 kB / 0.6272 GB, free: 3.871 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002586/0.4566, allocations: 1.948 MB / 0.6291 GB, free: 1.918 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-05/0.4567, allocations: 35.88 kB / 0.6291 GB, free: 1.883 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4567, allocations: 4 kB / 0.6291 GB, free: 1.879 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4567, allocations: 0 / 0.6291 GB, free: 1.879 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.4578, allocations: 1.015 MB / 0.6301 GB, free: 0.8125 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.4578, allocations: 0 / 0.6301 GB, free: 0.8125 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.4582, allocations: 99.84 kB / 0.6302 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.4582, allocations: 0 / 0.6302 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.4582, allocations: 8 kB / 0.6302 GB, free: 0.707 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.4582, allocations: 7.938 kB / 0.6302 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4582, allocations: 0 / 0.6302 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.4598, allocations: 1.135 MB / 0.6313 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.46, allocations: 215.6 kB / 0.6315 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.907e-05/0.4601, allocations: 4 kB / 0.6315 GB, free: 15.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003229/0.4604, allocations: 59.83 kB / 0.6316 GB, free: 15.25 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.4605, allocations: 31.81 kB / 0.6316 GB, free: 15.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.4606, allocations: 12 kB / 0.6316 GB, free: 15.21 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003548/0.4609, allocations: 331.1 kB / 0.632 GB, free: 14.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4609, allocations: 0 / 0.632 GB, free: 14.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002927/0.4639, allocations: 0.9993 MB / 0.6329 GB, free: 13.88 MB / 458.7 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.004736/0.4686, allocations: 1.19 MB / 0.6341 GB, free: 12.69 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.4698, allocations: 0.642 MB / 0.6347 GB, free: 12.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4698, allocations: 0 / 0.6347 GB, free: 12.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007264/0.4706, allocations: 0.54 MB / 0.6353 GB, free: 11.51 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.4716, allocations: 207.4 kB / 0.6355 GB, free: 11.31 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.4739, allocations: 1.894 MB / 0.6373 GB, free: 9.387 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.4744, allocations: 0.9637 MB / 0.6382 GB, free: 8.395 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004536/0.4748, allocations: 266.8 kB / 0.6385 GB, free: 8.137 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.663e-05/0.4749, allocations: 43.44 kB / 0.6385 GB, free: 8.094 MB / 458.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4749, allocations: 0 / 0.6385 GB, free: 8.094 MB / 458.7 MB Notification: Performance of Templates: time 0.05293/0.5279, allocations: 38.95 MB / 0.6766 GB, free: 1.203 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches