Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001061/0.001061, allocations: 177.9 kB / 16.41 MB, free: 5.707 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.398/1.398, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007388/0.0007387, allocations: 86.31 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002908, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2414, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003786/0.2452, allocations: 4.393 MB / 378.9 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.2469, allocations: 1.225 MB / 380.2 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002648/0.2472, allocations: 15.03 kB / 380.2 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.2475, allocations: 108.3 kB / 380.3 MB, free: 40.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004336/0.2479, allocations: 275.4 kB / 380.6 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.2482, allocations: 167.1 kB / 380.7 MB, free: 40.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007742/0.249, allocations: 1.035 MB / 381.8 MB, free: 39.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003328/0.2493, allocations: 272.8 kB / 382 MB, free: 39.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/0.2497, allocations: 399.4 kB / 382.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.2501, allocations: 458.4 kB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.2502, allocations: 69.69 kB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.2504, allocations: 66.38 kB / 383 MB, free: 39.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.2505, allocations: 181.4 kB / 383.2 MB, free: 38.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.2507, allocations: 197.6 kB / 383.4 MB, free: 38.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000618/0.2514, allocations: 0.8753 MB / 384.2 MB, free: 38.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.2514, allocations: 5 kB / 384.2 MB, free: 38.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2514, allocations: 0 / 384.2 MB, free: 38.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.2514, allocations: 0 / 384.2 MB, free: 38.21 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.002005/0.2534, allocations: 1.207 MB / 385.5 MB, free: 37.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.2535, allocations: 13.95 kB / 385.5 MB, free: 37.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002174/0.2537, allocations: 105.9 kB / 385.6 MB, free: 37.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000855/0.2546, allocations: 0.5667 MB / 386.1 MB, free: 36.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002941/0.2549, allocations: 175.6 kB / 386.3 MB, free: 36.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.255, allocations: 55.47 kB / 386.4 MB, free: 36.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.2564, allocations: 0.8844 MB / 387.2 MB, free: 35.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.2564, allocations: 0 / 387.2 MB, free: 35.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-05/0.2565, allocations: 28 kB / 387.3 MB, free: 35.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.2565, allocations: 12 kB / 387.3 MB, free: 35.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.2579, allocations: 0.661 MB / 387.9 MB, free: 35.16 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.002945/0.2609, allocations: 2.08 MB / 390 MB, free: 32.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.2621, allocations: 0.8897 MB / 390.9 MB, free: 32.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006993/0.2628, allocations: 425 kB / 391.3 MB, free: 31.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.046e-05/0.2628, allocations: 20.58 kB / 391.4 MB, free: 31.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.2629, allocations: 51.22 kB / 391.4 MB, free: 31.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 2.495e-06/0.2629, allocations: 0 / 391.4 MB, free: 31.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.004723/0.2676, allocations: 1.976 MB / 393.4 MB, free: 29.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.2678, allocations: 0.8234 MB / 394.2 MB, free: 28.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00057/0.2683, allocations: 0.6254 MB / 394.8 MB, free: 27.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.2684, allocations: 49.7 kB / 394.9 MB, free: 27.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.2686, allocations: 333 kB / 395.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.2687, allocations: 256.2 kB / 395.5 MB, free: 27.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.2688, allocations: 16 kB / 395.5 MB, free: 27.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.9e-05/0.2689, allocations: 382.8 kB / 395.8 MB, free: 26.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006194/0.2695, allocations: 305.8 kB / 396.1 MB, free: 26.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007958/0.2703, allocations: 0.5742 MB / 396.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006725/0.271, allocations: 435.9 kB / 397.1 MB, free: 25.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.271, allocations: 3.953 kB / 397.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002379/0.2734, allocations: 1.192 MB / 398.3 MB, free: 24.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.2734, allocations: 93.06 kB / 398.4 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2734, allocations: 0 / 398.4 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006331/0.2741, allocations: 247.2 kB / 398.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006128/0.2747, allocations: 155.8 kB / 398.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005687/0.2804, allocations: 6.493 MB / 405.3 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008721/0.2813, allocations: 115.4 kB / 405.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.56e-05/0.2813, allocations: 27.98 kB / 405.5 MB, free: 16.45 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002735/0.2816, allocations: 221.6 kB / 405.7 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.2817, allocations: 90.97 kB / 405.8 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.2819, allocations: 95.27 kB / 405.9 MB, free: 16.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2819, allocations: 8 kB / 405.9 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2819, allocations: 0 / 405.9 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002189/0.2841, allocations: 1.335 MB / 407.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/0.2873, allocations: 2.023 MB / 409.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.2873, allocations: 7.984 kB / 409.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006301/0.2879, allocations: 163.8 kB / 409.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004505/0.2884, allocations: 206.5 kB / 409.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.2885, allocations: 19.98 kB / 409.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004678/0.2931, allocations: 5.051 MB / 414.7 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2932, allocations: 0 / 414.7 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002866/0.296, allocations: 1.523 MB / 416.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.2963, allocations: 239.9 kB / 416.4 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.705e-05/0.2964, allocations: 16 kB / 416.4 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006422/0.297, allocations: 71.94 kB / 416.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.2972, allocations: 60.56 kB / 416.6 MB, free: 4.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.2972, allocations: 23.98 kB / 416.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004124/0.2976, allocations: 447.1 kB / 417 MB, free: 4.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2976, allocations: 0 / 417 MB, free: 4.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006797/0.2983, allocations: 279.7 kB / 417.3 MB, free: 3.957 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001246/0.2985, allocations: 131.3 kB / 417.4 MB, free: 3.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.3003, allocations: 1.406 MB / 418.8 MB, free: 2.324 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3003, allocations: 4 kB / 418.8 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.3014, allocations: 0.8082 MB / 419.6 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009188/0.3024, allocations: 231.6 kB / 419.9 MB, free: 1.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.3047, allocations: 1.941 MB / 421.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.3052, allocations: 0.9401 MB / 422.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.3054, allocations: 67.42 kB / 422.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3054, allocations: 0 / 422.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of Templates: time 0.02418/0.3296, allocations: 22.46 MB / 445.3 MB, free: 7.742 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches