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.0009739/0.0009738, allocations: 91.06 kB / 16.65 MB, free: 6.535 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.001197/0.001197, allocations: 174.5 kB / 17.56 MB, free: 6.184 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.364/1.364, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002284/0.0002287, allocations: 7.938 kB / 301.4 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08961/0.08985, allocations: 50.42 MB / 351.8 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004343/0.09422, allocations: 4.641 MB / 356.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.09618, allocations: 1.238 MB / 357.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.09642, allocations: 8 kB / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.09673, allocations: 123.1 kB / 357.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005122/0.09725, allocations: 285.7 kB / 358.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.09759, allocations: 203.7 kB / 358.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009481/0.09855, allocations: 1.117 MB / 359.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003778/0.09893, allocations: 282.3 kB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004045/0.09935, allocations: 414.4 kB / 360.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004651/0.09982, allocations: 469.9 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.09994, allocations: 64 kB / 360.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.1001, allocations: 68 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.1002, allocations: 183.2 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004283/0.1007, allocations: 0.5032 MB / 361.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009112/0.1016, allocations: 1.132 MB / 362.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1016, allocations: 4 kB / 362.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1016, allocations: 0 / 362.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1016, allocations: 0 / 362.5 MB, free: 8.73 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.0021/0.1037, allocations: 1.193 MB / 363.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1038, allocations: 16.02 kB / 363.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.104, allocations: 103.8 kB / 363.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008066/0.1048, allocations: 0.5871 MB / 364.4 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.1051, allocations: 178.9 kB / 364.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.315e-05/0.1052, allocations: 60.12 kB / 364.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.1066, allocations: 0.8783 MB / 365.5 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1066, allocations: 0 / 365.5 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.951e-05/0.1067, allocations: 28 kB / 365.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1067, allocations: 15.94 kB / 365.6 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.1082, allocations: 0.6649 MB / 366.2 MB, free: 4.781 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.002932/0.1112, allocations: 2.084 MB / 368.3 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.1127, allocations: 0.8925 MB / 369.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008476/0.1135, allocations: 426.6 kB / 369.6 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.1136, allocations: 12.64 kB / 369.6 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.1136, allocations: 47.22 kB / 369.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.024e-06/0.1136, allocations: 0 / 369.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1643/0.2779, allocations: 1.996 MB / 371.7 MB, free: 24.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.2781, allocations: 0.8265 MB / 372.5 MB, free: 23.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008367/0.2789, allocations: 0.633 MB / 373.1 MB, free: 22.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.986e-05/0.279, allocations: 43.27 kB / 373.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.2793, allocations: 333.4 kB / 373.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.2795, allocations: 254.6 kB / 373.8 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.57e-05/0.2796, allocations: 62.12 kB / 373.8 MB, free: 22.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.2797, allocations: 389.2 kB / 374.2 MB, free: 22.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000885/0.2806, allocations: 311.1 kB / 374.5 MB, free: 22.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.2817, allocations: 0.5791 MB / 375.1 MB, free: 22.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001581/0.2833, allocations: 0.7461 MB / 375.8 MB, free: 21.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2833, allocations: 0 / 375.8 MB, free: 21.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002843/0.2861, allocations: 1.193 MB / 377 MB, free: 21.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.62e-05/0.2862, allocations: 92.86 kB / 377.1 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2862, allocations: 1.531 kB / 377.1 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007222/0.2869, allocations: 251.7 kB / 377.4 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006741/0.2876, allocations: 153 kB / 377.5 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006325/0.294, allocations: 6.501 MB / 384 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000939/0.2949, allocations: 123.8 kB / 384.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.295, allocations: 26.91 kB / 384.2 MB, free: 15.38 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.000304/0.2953, allocations: 217.2 kB / 384.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.2954, allocations: 89.09 kB / 384.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.2956, allocations: 91.3 kB / 384.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.2956, allocations: 7.875 kB / 384.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.2956, allocations: 0 / 384.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002566/0.2982, allocations: 1.342 MB / 385.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003917/0.3021, allocations: 2.038 MB / 387.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3021, allocations: 1.609 kB / 387.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007201/0.3029, allocations: 151.7 kB / 388.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005631/0.3034, allocations: 213.1 kB / 388.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/0.3035, allocations: 17.7 kB / 388.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005528/0.309, allocations: 5.061 MB / 393.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3091, allocations: 1.25 kB / 393.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/0.3126, allocations: 1.526 MB / 394.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003405/0.313, allocations: 247.5 kB / 395.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.3131, allocations: 19.28 kB / 395.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007372/0.3139, allocations: 70.23 kB / 395.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.314, allocations: 68.28 kB / 395.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.174e-05/0.3141, allocations: 19.83 kB / 395.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005113/0.3146, allocations: 463 kB / 395.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3146, allocations: 0 / 395.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008543/0.3155, allocations: 284.7 kB / 396 MB, free: 7.762 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.0001378/0.3156, allocations: 122.8 kB / 396.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002076/0.3177, allocations: 1.397 MB / 397.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3177, allocations: 1.781 kB / 397.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.319, allocations: 0.8159 MB / 398.4 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.3201, allocations: 224.5 kB / 398.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.3225, allocations: 2.001 MB / 400.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.3228, allocations: 0.9362 MB / 401.5 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004314/0.3232, allocations: 107.6 kB / 401.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.3234, allocations: 64.28 kB / 401.7 MB, free: 3.855 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3234, allocations: 0 / 401.7 MB, free: 3.855 MB / 302.1 MB Notification: Performance of Templates: time 0.02607/0.3495, allocations: 16.9 MB / 418.6 MB, free: 4.207 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/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