Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.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) 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(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.002039, allocations: 199.2 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.617/3.617, allocations: 226.5 MB / 245.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001216/0.001215, allocations: 97.58 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000478/0.0004785, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5414/0.5419, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.956/2.498, allocations: 322.4 MB / 0.7139 GB, free: 149.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005424/2.499, allocations: 86.45 kB / 0.714 GB, free: 149.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5555/3.055, allocations: 133.9 MB / 0.8447 GB, free: 14.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 6.112e-06/3.055, allocations: 4 kB / 0.8447 GB, free: 14.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.505e-05/3.055, allocations: 16 kB / 0.8447 GB, free: 14.12 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.005374/3.06, allocations: 1.188 MB / 0.8459 GB, free: 12.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.049e-05/3.06, allocations: 8.031 kB / 0.8459 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006071/3.061, allocations: 95.91 kB / 0.846 GB, free: 12.79 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002147/3.063, allocations: 0.6722 MB / 0.8466 GB, free: 12.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001741/3.063, allocations: 109.2 kB / 0.8467 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/3.064, allocations: 60.73 kB / 0.8468 GB, free: 11.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002477/3.066, allocations: 0.8892 MB / 0.8477 GB, free: 10.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/3.066, allocations: 0 / 0.8477 GB, free: 10.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/3.066, allocations: 27.98 kB / 0.8477 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/3.066, allocations: 53.27 kB / 0.8477 GB, free: 10.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/3.068, allocations: 0.8365 MB / 0.8486 GB, free: 10.06 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00821/3.077, allocations: 3.288 MB / 0.8518 GB, free: 6.613 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006032/3.083, allocations: 0.6648 MB / 0.8524 GB, free: 5.938 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009034/3.084, allocations: 366.3 kB / 0.8528 GB, free: 5.578 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004923/3.089, allocations: 2.039 MB / 0.8548 GB, free: 3.348 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.938e-05/3.089, allocations: 39.12 kB / 0.8548 GB, free: 3.301 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 5.62e-06/3.089, allocations: 0 / 0.8548 GB, free: 3.301 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.01077/3.1, allocations: 2.859 MB / 0.8576 GB, free: 380 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.919e-05/3.1, allocations: 85.67 kB / 0.8577 GB, free: 272 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.7257/3.826, allocations: 0.6664 MB / 0.8583 GB, free: 104.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005515/3.826, allocations: 41.61 kB / 0.8584 GB, free: 104.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006857/3.827, allocations: 336.9 kB / 0.8587 GB, free: 104.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006278/3.828, allocations: 228.1 kB / 0.8589 GB, free: 104.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/3.828, allocations: 17.19 kB / 0.8589 GB, free: 104.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003075/3.828, allocations: 387.3 kB / 0.8593 GB, free: 104.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/3.83, allocations: 354.6 kB / 0.8596 GB, free: 104.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/3.832, allocations: 0.5039 MB / 0.8601 GB, free: 104.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002347/3.834, allocations: 0.8446 MB / 0.8609 GB, free: 104 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/3.834, allocations: 3.938 kB / 0.861 GB, free: 104 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003582/3.838, allocations: 1.133 MB / 0.8621 GB, free: 103.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000263/3.838, allocations: 214.3 kB / 0.8623 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/3.838, allocations: 6.844 kB / 0.8623 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/3.841, allocations: 438 kB / 0.8627 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/3.842, allocations: 158.3 kB / 0.8628 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002444/3.845, allocations: 1.028 MB / 0.8638 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/3.846, allocations: 49.64 kB / 0.8639 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/3.846, allocations: 31.19 kB / 0.8639 GB, free: 103.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/3.846, allocations: 4.125 kB / 0.8639 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003687/3.85, allocations: 0.9953 MB / 0.8649 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/3.85, allocations: 5.781 kB / 0.8649 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/3.851, allocations: 316.7 kB / 0.8652 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/3.852, allocations: 169.5 kB / 0.8654 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/3.854, allocations: 0.9045 MB / 0.8662 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/3.856, allocations: 44.66 kB / 0.8663 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/3.856, allocations: 35.48 kB / 0.8663 GB, free: 102.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001115/3.857, allocations: 329.5 kB / 0.8666 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000474/3.858, allocations: 82.23 kB / 0.8667 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004486/3.862, allocations: 1.084 MB / 0.8678 GB, free: 102.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.812e-05/3.862, allocations: 11.12 kB / 0.8678 GB, free: 102.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.273e-05/3.862, allocations: 2.312 kB / 0.8678 GB, free: 102.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.39e-05/3.862, allocations: 3.609 kB / 0.8678 GB, free: 102.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007008/3.869, allocations: 2.006 MB / 0.8698 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/3.869, allocations: 0 / 0.8698 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009176/3.87, allocations: 120.6 kB / 0.8699 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/3.873, allocations: 446.1 kB / 0.8703 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001919/3.875, allocations: 18.52 kB / 0.8703 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002005/3.877, allocations: 1.028 MB / 0.8713 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/3.877, allocations: 0 / 0.8713 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/3.882, allocations: 1.594 MB / 0.8729 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008822/3.883, allocations: 249.7 kB / 0.8731 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/3.883, allocations: 14.94 kB / 0.8731 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009572/3.884, allocations: 45.84 kB / 0.8732 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002418/3.884, allocations: 59.75 kB / 0.8732 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/3.884, allocations: 27.58 kB / 0.8732 GB, free: 101.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004943/3.889, allocations: 478 kB / 0.8737 GB, free: 101 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.172e-06/3.889, allocations: 0 / 0.8737 GB, free: 101 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004582/3.894, allocations: 0.6495 MB / 0.8743 GB, free: 101 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003188/3.897, allocations: 0.5937 MB / 0.8749 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00564/3.903, allocations: 1.389 MB / 0.8763 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/3.903, allocations: 0 / 0.8763 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001802/3.905, allocations: 462.2 kB / 0.8767 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004138/3.909, allocations: 366.9 kB / 0.8771 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007455/3.916, allocations: 2.073 MB / 0.8791 GB, free: 100.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/3.918, allocations: 0.9964 MB / 0.8801 GB, free: 99.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009055/3.919, allocations: 82.25 kB / 0.8801 GB, free: 99.42 MB / 458.7 MB Notification: Performance of SimCode: time 7.925e-06/3.919, allocations: 0 / 0.8801 GB, free: 99.42 MB / 458.7 MB Notification: Performance of Templates: time 0.07177/3.991, allocations: 19.38 MB / 0.8991 GB, free: 98.5 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches