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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 99.22 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3571/0.3571, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003131/0.0003131, allocations: 8 kB / 468.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4542/0.4545, allocations: 63.24 MB / 0.5192 GB, free: 43.83 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.742/6.197, allocations: 2.76 GB / 3.28 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/6.197, allocations: 88.52 kB / 3.28 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.6468/6.844, allocations: 219.7 MB / 3.494 GB, free: 19.35 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.823e-06/6.844, allocations: 0 / 3.494 GB, free: 19.35 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.085e-05/6.844, allocations: 16 kB / 3.494 GB, free: 19.33 MB / 0.5417 GB 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.004488/6.849, allocations: 1.222 MB / 3.495 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/6.849, allocations: 15.91 kB / 3.495 GB, free: 18.05 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00157/6.85, allocations: 223.2 kB / 3.496 GB, free: 17.83 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000488/6.851, allocations: 378 kB / 3.496 GB, free: 17.42 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/6.851, allocations: 24.66 kB / 3.496 GB, free: 17.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/6.851, allocations: 28 kB / 3.496 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/6.852, allocations: 0.6065 MB / 3.497 GB, free: 16.72 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/6.852, allocations: 4 kB / 3.497 GB, free: 16.71 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.886e-05/6.852, allocations: 16.28 kB / 3.497 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/6.852, allocations: 11.95 kB / 3.497 GB, free: 16.69 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/6.854, allocations: 0.5875 MB / 3.497 GB, free: 16.1 MB / 0.5417 GB 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.002258/6.856, allocations: 2.586 MB / 3.5 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/6.857, allocations: 490.1 kB / 3.5 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2663/7.124, allocations: 26.64 MB / 3.526 GB, free: 81.13 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/7.124, allocations: 40.91 kB / 3.526 GB, free: 81.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 2.113e-06/7.124, allocations: 0 / 3.526 GB, free: 81.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.002563/7.126, allocations: 0.847 MB / 3.527 GB, free: 81.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/7.126, allocations: 106.5 kB / 3.527 GB, free: 80.94 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/7.127, allocations: 275.6 kB / 3.528 GB, free: 80.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/7.127, allocations: 29.64 kB / 3.528 GB, free: 80.81 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/7.127, allocations: 212.8 kB / 3.528 GB, free: 80.71 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.984e-05/7.127, allocations: 81.88 kB / 3.528 GB, free: 80.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/7.127, allocations: 3.938 kB / 3.528 GB, free: 80.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.393e-05/7.127, allocations: 345.6 kB / 3.528 GB, free: 80.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/7.127, allocations: 159.6 kB / 3.528 GB, free: 80.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004024/7.128, allocations: 254.9 kB / 3.529 GB, free: 80.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/7.128, allocations: 173.2 kB / 3.529 GB, free: 80.25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/7.128, allocations: 0 / 3.529 GB, free: 80.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008905/7.129, allocations: 458.8 kB / 3.529 GB, free: 80.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/7.129, allocations: 7.141 kB / 3.529 GB, free: 80.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/7.129, allocations: 2.781 kB / 3.529 GB, free: 80.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/7.129, allocations: 8.812 kB / 3.529 GB, free: 80.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000345/7.13, allocations: 100.4 kB / 3.529 GB, free: 80.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/7.13, allocations: 9.406 kB / 3.529 GB, free: 80.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/7.13, allocations: 78.39 kB / 3.529 GB, free: 80.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/7.13, allocations: 10.09 kB / 3.529 GB, free: 80.2 MB / 0.5417 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000154/7.13, allocations: 164.3 kB / 3.53 GB, free: 80.08 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.733e-05/7.13, allocations: 32.19 kB / 3.53 GB, free: 80.07 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/7.132, allocations: 1.931 MB / 3.531 GB, free: 79.89 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/7.132, allocations: 38.75 kB / 3.531 GB, free: 79.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/7.132, allocations: 0 / 3.531 GB, free: 79.89 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/7.132, allocations: 3.625 kB / 3.531 GB, free: 79.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007533/7.133, allocations: 1.008 MB / 3.532 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/7.133, allocations: 3.609 kB / 3.532 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/7.133, allocations: 87.91 kB / 3.533 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/7.133, allocations: 2.812 kB / 3.533 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/7.133, allocations: 12.86 kB / 3.533 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/7.133, allocations: 3.953 kB / 3.533 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/7.133, allocations: 0 / 3.533 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/7.134, allocations: 1.107 MB / 3.534 GB, free: 79.43 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/7.135, allocations: 223.2 kB / 3.534 GB, free: 79.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/7.135, allocations: 4.719 kB / 3.534 GB, free: 79.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003107/7.135, allocations: 59 kB / 3.534 GB, free: 79.29 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.896e-05/7.135, allocations: 32.84 kB / 3.534 GB, free: 79.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/7.135, allocations: 16.38 kB / 3.534 GB, free: 79.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002607/7.135, allocations: 325.9 kB / 3.534 GB, free: 79.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/7.135, allocations: 0 / 3.534 GB, free: 79.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004024/7.139, allocations: 1.024 MB / 3.535 GB, free: 79.2 MB / 0.5417 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004058/7.143, allocations: 1.371 MB / 3.537 GB, free: 79.11 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001044/7.144, allocations: 0.6273 MB / 3.537 GB, free: 79.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/7.144, allocations: 0 / 3.537 GB, free: 79.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005636/7.145, allocations: 0.5342 MB / 3.538 GB, free: 79.09 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00088/7.146, allocations: 202.1 kB / 3.538 GB, free: 79.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/7.148, allocations: 1.864 MB / 3.54 GB, free: 78.26 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/7.148, allocations: 0.9814 MB / 3.541 GB, free: 77.55 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0003698/7.148, allocations: 246.3 kB / 3.541 GB, free: 77.55 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.407e-05/7.148, allocations: 42.83 kB / 3.541 GB, free: 77.54 MB / 0.5417 GB Notification: Performance of SimCode: time 3.41e-07/7.148, allocations: 0 / 3.541 GB, free: 77.54 MB / 0.5417 GB Notification: Performance of Templates: time 0.04211/7.191, allocations: 31.45 MB / 3.572 GB, free: 76.93 MB / 0.5417 GB 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