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.001017/0.001017, allocations: 94.56 kB / 17.31 MB, free: 5.656 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.001167/0.001167, allocations: 179.9 kB / 18.21 MB, free: 5.25 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.269/1.269, allocations: 223.3 MB / 242.3 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002371/0.0002371, allocations: 7.938 kB / 302.1 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.0855, allocations: 50.41 MB / 352.5 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005051/0.09059, allocations: 4.641 MB / 357.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.09299, allocations: 1.235 MB / 358.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004285/0.09344, allocations: 8 kB / 358.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004413/0.09389, allocations: 131.1 kB / 358.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000808/0.09471, allocations: 277.8 kB / 358.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.09519, allocations: 203.7 kB / 359 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.09645, allocations: 1.12 MB / 360.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000421/0.09688, allocations: 294.2 kB / 360.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005355/0.09743, allocations: 406.4 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006544/0.09809, allocations: 473.9 kB / 361.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.09828, allocations: 67.98 kB / 361.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.0985, allocations: 68 kB / 361.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.09867, allocations: 183.2 kB / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004961/0.09918, allocations: 0.4954 MB / 362 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007401/0.09993, allocations: 0.8842 MB / 362.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.09994, allocations: 0 / 362.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09995, allocations: 3.938 kB / 362.9 MB, free: 8.938 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.68e-05/0.09998, allocations: 0 / 362.9 MB, free: 8.938 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.002215/0.1022, allocations: 1.197 MB / 364.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.1022, allocations: 8.031 kB / 364.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.1025, allocations: 107.8 kB / 364.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009228/0.1034, allocations: 0.5871 MB / 364.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003203/0.1037, allocations: 174.9 kB / 365 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1038, allocations: 64.12 kB / 365.1 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.1054, allocations: 0.8783 MB / 365.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.1054, allocations: 4 kB / 365.9 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.676e-05/0.1055, allocations: 24 kB / 366 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.1055, allocations: 12 kB / 366 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.1071, allocations: 0.6649 MB / 366.6 MB, free: 4.992 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.003295/0.1104, allocations: 2.084 MB / 368.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.1119, allocations: 0.8925 MB / 369.6 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008764/0.1127, allocations: 426.6 kB / 370 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.052e-05/0.1128, allocations: 12.64 kB / 370.1 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.1129, allocations: 47.22 kB / 370.1 MB, free: 1.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.154e-06/0.1129, allocations: 3.938 kB / 370.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.161/0.2739, allocations: 1.991 MB / 372.1 MB, free: 24.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/0.2741, allocations: 0.8278 MB / 372.9 MB, free: 23.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.2752, allocations: 0.6342 MB / 373.6 MB, free: 23.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.2753, allocations: 47.33 kB / 373.6 MB, free: 23.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000276/0.2756, allocations: 332.3 kB / 373.9 MB, free: 23.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.2758, allocations: 256.3 kB / 374.2 MB, free: 23.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.006e-05/0.2759, allocations: 58.44 kB / 374.2 MB, free: 23.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2761, allocations: 390.6 kB / 374.6 MB, free: 22.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008631/0.2769, allocations: 307.7 kB / 374.9 MB, free: 22.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.278, allocations: 0.5838 MB / 375.5 MB, free: 22.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.2796, allocations: 0.7409 MB / 376.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.2797, allocations: 4.969 kB / 376.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003013/0.2827, allocations: 1.188 MB / 377.4 MB, free: 21.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.2827, allocations: 97.19 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2828, allocations: 0.6562 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007442/0.2835, allocations: 251.1 kB / 377.8 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007214/0.2842, allocations: 155.5 kB / 377.9 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006638/0.2909, allocations: 6.497 MB / 384.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.292, allocations: 124.2 kB / 384.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-05/0.2921, allocations: 23.45 kB / 384.6 MB, free: 15.75 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.0003795/0.2925, allocations: 220.8 kB / 384.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001844/0.2927, allocations: 84.62 kB / 384.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.2929, allocations: 96.52 kB / 385 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2929, allocations: 7.156 kB / 385 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.2929, allocations: 0 / 385 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002591/0.2955, allocations: 1.345 MB / 386.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.2998, allocations: 2.026 MB / 388.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2998, allocations: 7.875 kB / 388.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007376/0.3006, allocations: 148.3 kB / 388.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005956/0.3012, allocations: 218.2 kB / 388.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.255e-05/0.3013, allocations: 19.19 kB / 388.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005629/0.3069, allocations: 5.062 MB / 393.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3069, allocations: 0 / 393.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003683/0.3106, allocations: 1.531 MB / 395.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004659/0.3111, allocations: 247.2 kB / 395.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.3113, allocations: 15.91 kB / 395.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007778/0.3121, allocations: 72.25 kB / 395.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.3123, allocations: 68.09 kB / 395.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.939e-05/0.3123, allocations: 20.5 kB / 395.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005444/0.3129, allocations: 458.5 kB / 396.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3129, allocations: 0 / 396.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000993/0.3139, allocations: 282.2 kB / 396.5 MB, free: 8.125 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.0001443/0.314, allocations: 122.2 kB / 396.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.3161, allocations: 1.402 MB / 398 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.3161, allocations: 6.281 kB / 398 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.3175, allocations: 0.811 MB / 398.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.3185, allocations: 220.3 kB / 399 MB, free: 6.492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.3211, allocations: 2.032 MB / 401 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.3214, allocations: 0.9362 MB / 402 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.3216, allocations: 71.86 kB / 402 MB, free: 4.238 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3216, allocations: 0 / 402 MB, free: 4.238 MB / 302.1 MB Notification: Performance of Templates: time 0.02452/0.3462, allocations: 22.43 MB / 424.5 MB, free: 14.82 MB / 334.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 -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