Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001715/0.001715, allocations: 183 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.161/1.161, allocations: 205.1 MB / 223.7 MB, free: 8.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009948/0.0009948, allocations: 95.66 kB / 271.2 MB, free: 8.461 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008577/0.0008578, allocations: 43.94 kB / 327.2 MB, free: 348 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1967, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.00448/0.2012, allocations: 5.045 MB / 378.9 MB, free: 41.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.203, allocations: 1.341 MB / 380.2 MB, free: 40.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002711/0.2033, allocations: 7.75 kB / 380.2 MB, free: 40.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003258/0.2036, allocations: 124.3 kB / 380.3 MB, free: 40.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004542/0.2041, allocations: 287.4 kB / 380.6 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.2044, allocations: 199.1 kB / 380.8 MB, free: 40.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008103/0.2052, allocations: 1.134 MB / 381.9 MB, free: 39.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003233/0.2055, allocations: 282.2 kB / 382.2 MB, free: 39.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.2059, allocations: 429 kB / 382.6 MB, free: 39.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003917/0.2063, allocations: 495.2 kB / 383.1 MB, free: 38.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.2064, allocations: 73 kB / 383.2 MB, free: 38.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.2066, allocations: 73.66 kB / 383.3 MB, free: 38.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.2067, allocations: 188.7 kB / 383.5 MB, free: 38.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004407/0.2071, allocations: 0.4911 MB / 383.9 MB, free: 38.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000682/0.2078, allocations: 1.157 MB / 385.1 MB, free: 37.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2078, allocations: 1.281 kB / 385.1 MB, free: 37.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2078, allocations: 0 / 385.1 MB, free: 37.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.2079, allocations: 3.938 kB / 385.1 MB, free: 37.39 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.002128/0.21, allocations: 1.335 MB / 386.4 MB, free: 36.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.21, allocations: 9.719 kB / 386.4 MB, free: 36.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.2102, allocations: 110.2 kB / 386.6 MB, free: 36.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008011/0.211, allocations: 0.5843 MB / 387.1 MB, free: 35.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.2113, allocations: 168 kB / 387.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.021e-05/0.2114, allocations: 58.47 kB / 387.4 MB, free: 35.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.2125, allocations: 0.8652 MB / 388.2 MB, free: 34.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.2126, allocations: 0 / 388.2 MB, free: 34.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.539e-05/0.2126, allocations: 32 kB / 388.3 MB, free: 34.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.2126, allocations: 12 kB / 388.3 MB, free: 34.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.2138, allocations: 0.6258 MB / 388.9 MB, free: 34.17 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.002397/0.2163, allocations: 2.077 MB / 391 MB, free: 31.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.2173, allocations: 0.8623 MB / 391.8 MB, free: 31.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006734/0.218, allocations: 405 kB / 392.2 MB, free: 30.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.24e-05/0.2181, allocations: 20.64 kB / 392.3 MB, free: 30.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.2181, allocations: 43.22 kB / 392.3 MB, free: 30.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 2.284e-06/0.2181, allocations: 4 kB / 392.3 MB, free: 30.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.004283/0.2224, allocations: 1.835 MB / 394.1 MB, free: 28.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.2226, allocations: 0.8234 MB / 395 MB, free: 27.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005374/0.2231, allocations: 0.6332 MB / 395.6 MB, free: 27.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.2232, allocations: 41.7 kB / 395.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.2233, allocations: 329 kB / 396 MB, free: 26.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.2234, allocations: 260.2 kB / 396.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/0.2236, allocations: 146.7 kB / 396.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.281e-05/0.2237, allocations: 386.7 kB / 396.7 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.2243, allocations: 281.8 kB / 397 MB, free: 25.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007087/0.225, allocations: 0.5663 MB / 397.6 MB, free: 24.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.2262, allocations: 0.705 MB / 398.3 MB, free: 24.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2262, allocations: 0 / 398.3 MB, free: 24.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002185/0.2284, allocations: 1.126 MB / 399.4 MB, free: 23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.2284, allocations: 85.11 kB / 399.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2284, allocations: 0 / 399.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005564/0.229, allocations: 235.2 kB / 399.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005713/0.2296, allocations: 155.8 kB / 399.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005128/0.2347, allocations: 6.37 MB / 406.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009549/0.2357, allocations: 115.3 kB / 406.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.537e-05/0.2358, allocations: 27.94 kB / 406.4 MB, free: 15.46 MB / 298.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.0002617/0.236, allocations: 213.8 kB / 406.6 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.2361, allocations: 83.06 kB / 406.7 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/0.2363, allocations: 91.33 kB / 406.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2363, allocations: 8 kB / 406.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.2363, allocations: 4 kB / 406.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002047/0.2384, allocations: 1.264 MB / 408 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.2414, allocations: 1.953 MB / 410 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2414, allocations: 0 / 410 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/0.242, allocations: 139.8 kB / 410.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004366/0.2425, allocations: 206.4 kB / 410.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.843e-05/0.2425, allocations: 12 kB / 410.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004434/0.247, allocations: 4.915 MB / 415.2 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.247, allocations: 0 / 415.2 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02111/0.2681, allocations: 12.3 MB / 427.5 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003296/0.2685, allocations: 248 kB / 427.8 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.634e-05/0.2686, allocations: 20 kB / 427.8 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006613/0.2692, allocations: 55.94 kB / 427.9 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.2694, allocations: 56.56 kB / 427.9 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.005e-05/0.2695, allocations: 20 kB / 427.9 MB, free: 8.684 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004982/0.27, allocations: 463 kB / 428.4 MB, free: 8.234 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.27, allocations: 0 / 428.4 MB, free: 8.234 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00111/0.2711, allocations: 399.7 kB / 428.8 MB, free: 7.844 MB / 314.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.0001456/0.2713, allocations: 119.2 kB / 428.9 MB, free: 7.719 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.2734, allocations: 1.375 MB / 430.3 MB, free: 6.262 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2734, allocations: 0 / 430.3 MB, free: 6.262 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.2747, allocations: 0.7731 MB / 431 MB, free: 5.445 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009257/0.2756, allocations: 234.7 kB / 431.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.2791, allocations: 2.714 MB / 434 MB, free: 2.422 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.2795, allocations: 0.9601 MB / 434.9 MB, free: 1.43 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004311/0.28, allocations: 106.4 kB / 435 MB, free: 1.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.2802, allocations: 63.44 kB / 435.1 MB, free: 1.258 MB / 314.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2802, allocations: 0 / 435.1 MB, free: 1.258 MB / 314.7 MB Notification: Performance of Templates: time 0.0269/0.3071, allocations: 20.82 MB / 455.9 MB, free: 12.44 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches