Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 113.6 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009976/0.000998, allocations: 49.23 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0978/0.09881, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.008363/0.1072, allocations: 5.028 MB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003332/0.1106, allocations: 1.293 MB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006029/0.1112, allocations: 11.94 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006443/0.1119, allocations: 158.6 kB / 358 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001081/0.1131, allocations: 321.2 kB / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00068/0.1138, allocations: 235.6 kB / 358.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001651/0.1154, allocations: 1.187 MB / 359.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006222/0.1161, allocations: 322 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007038/0.1168, allocations: 450.4 kB / 360.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007803/0.1176, allocations: 0.5058 MB / 361 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001916/0.1178, allocations: 104 kB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.118, allocations: 104 kB / 361.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002453/0.1183, allocations: 223.2 kB / 361.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006559/0.1189, allocations: 0.5211 MB / 361.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001458/0.1204, allocations: 1.207 MB / 363.1 MB, free: 8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1204, allocations: 0 / 363.1 MB, free: 8 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1204, allocations: 0 / 363.1 MB, free: 8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.595e-05/0.1205, allocations: 0 / 363.1 MB, free: 8 MB / 302.1 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.003408/0.1239, allocations: 1.345 MB / 364.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1239, allocations: 11.89 kB / 364.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/0.1242, allocations: 107.8 kB / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/0.1256, allocations: 0.5832 MB / 365.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.1259, allocations: 139 kB / 365.3 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.126, allocations: 60.12 kB / 365.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.128, allocations: 0.8475 MB / 366.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.1281, allocations: 3.938 kB / 366.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.1282, allocations: 31.98 kB / 366.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.1282, allocations: 20 kB / 366.3 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/0.1301, allocations: 0.5907 MB / 366.9 MB, free: 4.039 MB / 302.1 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.004262/0.1344, allocations: 2.053 MB / 368.9 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.1357, allocations: 0.8507 MB / 369.8 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007393/0.1364, allocations: 398.4 kB / 370.2 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-05/0.1365, allocations: 16.64 kB / 370.2 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/0.1366, allocations: 51.2 kB / 370.2 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.896e-06/0.1366, allocations: 4 kB / 370.2 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1842/0.3208, allocations: 1.787 MB / 372 MB, free: 25.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.321, allocations: 0.8214 MB / 372.8 MB, free: 24.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.3221, allocations: 0.6347 MB / 373.5 MB, free: 23.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.3222, allocations: 45.05 kB / 373.5 MB, free: 23.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.3225, allocations: 333.4 kB / 373.8 MB, free: 23.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.3228, allocations: 254.5 kB / 374.1 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002505/0.323, allocations: 142.3 kB / 374.2 MB, free: 23.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.959e-05/0.3231, allocations: 387.3 kB / 374.6 MB, free: 23.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000659/0.3238, allocations: 274.5 kB / 374.9 MB, free: 23.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008858/0.3247, allocations: 0.5502 MB / 375.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.326, allocations: 0.6819 MB / 376.1 MB, free: 22.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.326, allocations: 0 / 376.1 MB, free: 22.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002484/0.3285, allocations: 1.092 MB / 377.2 MB, free: 22.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.241e-05/0.3285, allocations: 90.48 kB / 377.3 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3285, allocations: 3.656 kB / 377.3 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006642/0.3292, allocations: 238.2 kB / 377.5 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.3298, allocations: 136.1 kB / 377.7 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006392/0.3362, allocations: 6.923 MB / 384.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008734/0.3371, allocations: 99.84 kB / 384.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-05/0.3372, allocations: 26.56 kB / 384.7 MB, free: 15.53 MB / 302.1 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.0003246/0.3375, allocations: 224.6 kB / 384.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.3377, allocations: 89.61 kB / 385 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001646/0.3379, allocations: 88.61 kB / 385.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3379, allocations: 8.312 kB / 385.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3379, allocations: 0 / 385.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002238/0.3401, allocations: 1.243 MB / 386.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.3438, allocations: 1.923 MB / 388.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3438, allocations: 0 / 388.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007056/0.3446, allocations: 138.5 kB / 388.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005332/0.3451, allocations: 196 kB / 388.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.608e-05/0.3452, allocations: 14.67 kB / 388.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005327/0.3505, allocations: 5.35 MB / 394 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3505, allocations: 1.625 kB / 394 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002881/0.3534, allocations: 1.394 MB / 395.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.3537, allocations: 242.4 kB / 395.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.3538, allocations: 22.91 kB / 395.6 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/0.3544, allocations: 54.62 kB / 395.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.3546, allocations: 65.36 kB / 395.7 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.3546, allocations: 16.91 kB / 395.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004736/0.3551, allocations: 457.6 kB / 396.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3551, allocations: 0 / 396.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008161/0.3559, allocations: 281.8 kB / 396.5 MB, free: 7.586 MB / 302.1 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.0001337/0.3561, allocations: 135 kB / 396.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.3578, allocations: 1.347 MB / 397.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3578, allocations: 2.5 kB / 397.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.359, allocations: 0.7728 MB / 398.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008447/0.3598, allocations: 231.7 kB / 398.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.3621, allocations: 1.593 MB / 400.5 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3624, allocations: 0.9429 MB / 401.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003316/0.3627, allocations: 100.1 kB / 401.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.3629, allocations: 69.05 kB / 401.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3629, allocations: 0 / 401.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of Templates: time 0.02409/0.387, allocations: 18.42 MB / 420.1 MB, free: 3.293 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches