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.001295/0.001295, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.001284/0.001284, allocations: 194.9 kB / 18.08 MB, free: 5.41 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.382/1.382, allocations: 222.9 MB / 241.8 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 49.48 kB / 300.6 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09441, allocations: 49.45 MB / 350.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006005/0.1005, allocations: 5.039 MB / 355.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.103, allocations: 1.301 MB / 356.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000685/0.1037, allocations: 15.94 kB / 356.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005532/0.1043, allocations: 127.1 kB / 356.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.1054, allocations: 281.8 kB / 356.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.106, allocations: 195.8 kB / 357 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.1074, allocations: 1.123 MB / 358.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004595/0.1078, allocations: 294.2 kB / 358.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005885/0.1084, allocations: 418.4 kB / 358.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007436/0.1092, allocations: 497.9 kB / 359.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000225/0.1094, allocations: 72 kB / 359.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002789/0.1097, allocations: 72 kB / 359.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.1099, allocations: 203.2 kB / 359.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006443/0.1106, allocations: 497.6 kB / 360.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008586/0.1115, allocations: 0.8962 MB / 361 MB, free: 9.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.1115, allocations: 4 kB / 361 MB, free: 9.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1115, allocations: 0 / 361 MB, free: 9.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.156e-05/0.1115, allocations: 0 / 361 MB, free: 9.582 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.00309/0.1146, allocations: 1.345 MB / 362.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1147, allocations: 8.031 kB / 362.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002529/0.115, allocations: 107.8 kB / 362.5 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.1161, allocations: 0.5793 MB / 363.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003338/0.1164, allocations: 170.9 kB / 363.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.1166, allocations: 60.12 kB / 363.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.1183, allocations: 0.8587 MB / 364.2 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.1184, allocations: 3.938 kB / 364.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.668e-05/0.1185, allocations: 28 kB / 364.2 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.1185, allocations: 12 kB / 364.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.1202, allocations: 0.6335 MB / 364.8 MB, free: 5.551 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.003965/0.1242, allocations: 2.061 MB / 366.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.1258, allocations: 0.8625 MB / 367.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008845/0.1267, allocations: 418.5 kB / 368.2 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.916e-05/0.1267, allocations: 12.64 kB / 368.2 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.1268, allocations: 47.22 kB / 368.2 MB, free: 1.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.695e-06/0.1268, allocations: 0 / 368.2 MB, free: 1.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.00585/0.1327, allocations: 1.839 MB / 370.1 MB, free: 44 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1509/0.2836, allocations: 0.8159 MB / 370.9 MB, free: 24.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009664/0.2846, allocations: 0.6305 MB / 371.5 MB, free: 24.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.2848, allocations: 43.89 kB / 371.5 MB, free: 24.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.2851, allocations: 336.2 kB / 371.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/0.2853, allocations: 254.3 kB / 372.1 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/0.2855, allocations: 145.1 kB / 372.3 MB, free: 24.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2857, allocations: 384 kB / 372.6 MB, free: 23.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007731/0.2864, allocations: 285.3 kB / 372.9 MB, free: 23.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000947/0.2874, allocations: 0.5672 MB / 373.5 MB, free: 23.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.2889, allocations: 0.7067 MB / 374.2 MB, free: 23.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2889, allocations: 1.562 kB / 374.2 MB, free: 23.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002887/0.2918, allocations: 1.12 MB / 375.3 MB, free: 22.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.2918, allocations: 89.75 kB / 375.4 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.2918, allocations: 1.891 kB / 375.4 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006857/0.2925, allocations: 228.5 kB / 375.6 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006622/0.2932, allocations: 146.9 kB / 375.8 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006502/0.2997, allocations: 6.374 MB / 382.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009684/0.3007, allocations: 111 kB / 382.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.25e-05/0.3008, allocations: 25.39 kB / 382.3 MB, free: 16.78 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.0003375/0.3011, allocations: 217.9 kB / 382.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.3013, allocations: 84.7 kB / 382.6 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.3015, allocations: 91.08 kB / 382.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.3015, allocations: 10.05 kB / 382.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.3015, allocations: 0.8438 kB / 382.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002434/0.3039, allocations: 1.27 MB / 383.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003867/0.3078, allocations: 1.949 MB / 385.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3078, allocations: 0.5625 kB / 385.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007229/0.3086, allocations: 148.4 kB / 386 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005443/0.3091, allocations: 199.8 kB / 386.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.046e-05/0.3092, allocations: 14.59 kB / 386.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005419/0.3146, allocations: 4.92 MB / 391.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3146, allocations: 0 / 391.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003417/0.3181, allocations: 1.433 MB / 392.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003758/0.3184, allocations: 249.5 kB / 392.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.3186, allocations: 22.81 kB / 392.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006776/0.3193, allocations: 56.47 kB / 392.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.3195, allocations: 59.31 kB / 393 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.51e-05/0.3195, allocations: 19.42 kB / 393 MB, free: 9.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005666/0.3201, allocations: 459.3 kB / 393.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3201, allocations: 4 kB / 393.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009357/0.3211, allocations: 276.8 kB / 393.7 MB, free: 9.23 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.0001537/0.3212, allocations: 128 kB / 393.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.3233, allocations: 1.371 MB / 395.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3233, allocations: 2.031 kB / 395.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.3247, allocations: 0.7752 MB / 396 MB, free: 7.746 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.3257, allocations: 233.8 kB / 396.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.3283, allocations: 1.919 MB / 398.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3286, allocations: 0.9417 MB / 399.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.3289, allocations: 66.48 kB / 399.1 MB, free: 5.617 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3289, allocations: 0 / 399.1 MB, free: 5.617 MB / 302.1 MB Notification: Performance of Templates: time 0.02312/0.352, allocations: 22.51 MB / 421.7 MB, free: 1.242 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/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