Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001473, allocations: 202.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007306/0.0007307, allocations: 104.6 kB / 299.8 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001878/0.0001878, allocations: 4 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1827, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003251/0.186, allocations: 4.415 MB / 416.5 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.1876, allocations: 1.629 MB / 418.1 MB, free: 19.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.1879, allocations: 11.94 kB / 418.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.1882, allocations: 127.1 kB / 418.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004472/0.1887, allocations: 289.7 kB / 418.5 MB, free: 19.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002945/0.189, allocations: 187.8 kB / 418.7 MB, free: 19.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006813/0.1897, allocations: 1.125 MB / 419.8 MB, free: 18.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.19, allocations: 287.5 kB / 420.1 MB, free: 17.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002728/0.1902, allocations: 410.4 kB / 420.5 MB, free: 17.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.1906, allocations: 473.9 kB / 421 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.3e-05/0.1907, allocations: 64 kB / 421 MB, free: 16.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.1908, allocations: 68 kB / 421.1 MB, free: 16.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.1909, allocations: 183.2 kB / 421.3 MB, free: 16.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003263/0.1913, allocations: 0.5032 MB / 421.8 MB, free: 16.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000637/0.1919, allocations: 1.129 MB / 422.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1919, allocations: 0 / 422.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1919, allocations: 3.938 kB / 422.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.192, allocations: 4 kB / 422.9 MB, free: 14.88 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001734/0.1937, allocations: 1.197 MB / 424.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.1937, allocations: 12.03 kB / 424.1 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.1939, allocations: 103.8 kB / 424.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006856/0.1946, allocations: 0.5948 MB / 424.8 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002504/0.1948, allocations: 174.9 kB / 425 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.691e-05/0.1949, allocations: 60.12 kB / 425 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.1961, allocations: 0.8705 MB / 425.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.1962, allocations: 0 / 425.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.837e-05/0.1962, allocations: 28 kB / 425.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1963, allocations: 16 kB / 426 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.1975, allocations: 0.6571 MB / 426.6 MB, free: 10.95 MB / 298.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.002563/0.2001, allocations: 2.073 MB / 428.7 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.2013, allocations: 0.8897 MB / 429.6 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006896/0.202, allocations: 419.5 kB / 430 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.947e-05/0.202, allocations: 24.56 kB / 430 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.2021, allocations: 47.22 kB / 430.1 MB, free: 7.324 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 2.124e-06/0.2021, allocations: 0 / 430.1 MB, free: 7.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.004676/0.2068, allocations: 1.984 MB / 432 MB, free: 5.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.2069, allocations: 0.8234 MB / 432.9 MB, free: 4.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005858/0.2075, allocations: 0.6293 MB / 433.5 MB, free: 3.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.426e-05/0.2076, allocations: 45.7 kB / 433.5 MB, free: 3.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.2078, allocations: 333 kB / 433.9 MB, free: 3.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.2079, allocations: 260.2 kB / 434.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.208, allocations: 12 kB / 434.1 MB, free: 2.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.886e-05/0.2081, allocations: 386.8 kB / 434.5 MB, free: 2.555 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006037/0.2087, allocations: 305.7 kB / 434.8 MB, free: 2.258 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007439/0.2094, allocations: 0.5781 MB / 435.4 MB, free: 1.578 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.2106, allocations: 0.7441 MB / 436.1 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2107, allocations: 0 / 436.1 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002476/0.2131, allocations: 1.192 MB / 437.3 MB, free: 15.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.576e-05/0.2132, allocations: 93.09 kB / 437.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2132, allocations: 0 / 437.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006762/0.2139, allocations: 255.2 kB / 437.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/0.2146, allocations: 147.8 kB / 437.8 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00703/0.2216, allocations: 6.496 MB / 444.3 MB, free: 8.035 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008897/0.2225, allocations: 127.3 kB / 444.4 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.103e-05/0.2226, allocations: 20 kB / 444.4 MB, free: 7.891 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003203/0.2229, allocations: 225.6 kB / 444.7 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.223, allocations: 90.97 kB / 444.8 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.2232, allocations: 91.34 kB / 444.8 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2232, allocations: 8 kB / 444.9 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.2232, allocations: 3.938 kB / 444.9 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002493/0.2257, allocations: 1.331 MB / 446.2 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/0.2294, allocations: 2.019 MB / 448.2 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.2295, allocations: 0 / 448.2 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000688/0.2302, allocations: 155.8 kB / 448.4 MB, free: 3.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005341/0.2307, allocations: 218.5 kB / 448.6 MB, free: 3.551 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.131e-05/0.2308, allocations: 12 kB / 448.6 MB, free: 3.539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00582/0.2366, allocations: 5.059 MB / 453.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2366, allocations: 3.938 kB / 453.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003331/0.24, allocations: 1.523 MB / 455.2 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003777/0.2403, allocations: 243.8 kB / 455.4 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.2405, allocations: 20 kB / 455.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006344/0.2411, allocations: 80 kB / 455.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.2413, allocations: 60.56 kB / 455.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.2413, allocations: 20.19 kB / 455.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005175/0.2419, allocations: 459 kB / 456 MB, free: 11.65 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2419, allocations: 0 / 456 MB, free: 11.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007741/0.2427, allocations: 283.7 kB / 456.3 MB, free: 11.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001601/0.2428, allocations: 127.1 kB / 456.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002098/0.2449, allocations: 1.399 MB / 457.8 MB, free: 9.746 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2449, allocations: 0 / 457.8 MB, free: 9.746 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.2463, allocations: 0.8199 MB / 458.7 MB, free: 8.887 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009274/0.2472, allocations: 219 kB / 458.9 MB, free: 8.672 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.2499, allocations: 1.985 MB / 460.8 MB, free: 6.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.2503, allocations: 0.9401 MB / 461.8 MB, free: 5.691 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004036/0.2507, allocations: 102.4 kB / 461.9 MB, free: 5.586 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.2509, allocations: 63.42 kB / 462 MB, free: 5.523 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2509, allocations: 0 / 462 MB, free: 5.523 MB / 330.7 MB Notification: Performance of Templates: time 0.02523/0.2762, allocations: 16.92 MB / 478.9 MB, free: 4.688 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches