Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009297/0.0009296, allocations: 197.7 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 244.3 MB, free: 6.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007507/0.0007507, allocations: 95.72 kB / 296.4 MB, free: 6.805 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002041/0.0002041, allocations: 4 kB / 356.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1771, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.002747/0.1799, allocations: 3.833 MB / 411.3 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.1813, allocations: 1.468 MB / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.1815, allocations: 8 kB / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.1818, allocations: 103.2 kB / 412.9 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.1821, allocations: 237.2 kB / 413.1 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.1826, allocations: 306.3 kB / 413.4 MB, free: 21.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005148/0.1831, allocations: 1.01 MB / 414.4 MB, free: 20.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.1833, allocations: 203.2 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003609/0.1837, allocations: 430.6 kB / 415.1 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003319/0.1841, allocations: 478.3 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.64e-05/0.1841, allocations: 48 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.1844, allocations: 107.9 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1845, allocations: 175.4 kB / 415.8 MB, free: 19.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.507e-05/0.1846, allocations: 165.3 kB / 416 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004451/0.185, allocations: 0.784 MB / 416.8 MB, free: 18.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1851, allocations: 0 / 416.8 MB, free: 18.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1851, allocations: 0 / 416.8 MB, free: 18.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.1851, allocations: 0 / 416.8 MB, free: 18.47 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.002363/0.1874, allocations: 1.263 MB / 418.1 MB, free: 17.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.671e-05/0.1875, allocations: 8.031 kB / 418.1 MB, free: 17.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.1879, allocations: 118.9 kB / 418.2 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.1883, allocations: 436.5 kB / 418.6 MB, free: 16.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.1884, allocations: 61.94 kB / 418.7 MB, free: 16.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.729e-05/0.1885, allocations: 64 kB / 418.7 MB, free: 16.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1898, allocations: 0.8115 MB / 419.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.1898, allocations: 7.891 kB / 419.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/0.1899, allocations: 32 kB / 419.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.1899, allocations: 23.92 kB / 419.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.1915, allocations: 0.8666 MB / 420.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003234/0.1947, allocations: 2.47 MB / 422.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.1959, allocations: 0.7488 MB / 423.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007512/0.1967, allocations: 472.3 kB / 424.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.025e-05/0.1968, allocations: 16.97 kB / 424.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009182/0.1977, allocations: 0.5439 MB / 424.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=89): time 1.913e-06/0.1977, allocations: 4 kB / 424.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=109): time 0.009011/0.2067, allocations: 4.366 MB / 429.1 MB, free: 5.801 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.191e-05/0.2068, allocations: 64.41 kB / 429.1 MB, free: 5.727 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/0.2071, allocations: 401.9 kB / 429.5 MB, free: 5.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.094e-05/0.2071, allocations: 57.7 kB / 429.6 MB, free: 5.262 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.2073, allocations: 277 kB / 429.9 MB, free: 4.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.2074, allocations: 374.8 kB / 430.2 MB, free: 4.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.143e-05/0.2075, allocations: 20 kB / 430.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.55e-05/0.2076, allocations: 378.7 kB / 430.6 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008018/0.2084, allocations: 426.4 kB / 431 MB, free: 3.801 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008268/0.2092, allocations: 0.5266 MB / 431.6 MB, free: 3.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007056/0.2099, allocations: 374.4 kB / 431.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2099, allocations: 0 / 431.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002382/0.2123, allocations: 1.307 MB / 433.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.2123, allocations: 8 kB / 433.2 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.2123, allocations: 4 kB / 433.2 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007573/0.2131, allocations: 0.4904 MB / 433.7 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/0.2138, allocations: 207.7 kB / 433.9 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003392/0.2172, allocations: 3.254 MB / 437.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.2183, allocations: 240.1 kB / 437.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-05/0.2184, allocations: 35.98 kB / 437.5 MB, free: 13.14 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 111 * 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 9,1 5,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.000297/0.2187, allocations: 229.5 kB / 437.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.2188, allocations: 75.14 kB / 437.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.219, allocations: 103.2 kB / 437.9 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.219, allocations: 15.94 kB / 437.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.219, allocations: 0 / 437.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.026e-06/0.219, allocations: 7.984 kB / 437.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004069/0.2231, allocations: 2.505 MB / 440.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2231, allocations: 0 / 440.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007524/0.2239, allocations: 188 kB / 440.6 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008238/0.2247, allocations: 474.2 kB / 441 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.879e-05/0.2248, allocations: 31.97 kB / 441.1 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003209/0.228, allocations: 3.081 MB / 444.1 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.228, allocations: 7.969 kB / 444.2 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003615/0.2316, allocations: 1.856 MB / 446 MB, free: 4.234 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000323/0.232, allocations: 232.1 kB / 446.2 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.2321, allocations: 31.98 kB / 446.3 MB, free: 3.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.2334, allocations: 279.9 kB / 446.5 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007889/0.2342, allocations: 424.1 kB / 447 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.747e-05/0.2343, allocations: 51.95 kB / 447 MB, free: 3.215 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002812/0.2346, allocations: 279.1 kB / 447.3 MB, free: 2.945 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2346, allocations: 0 / 447.3 MB, free: 2.945 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006497/0.2352, allocations: 244 kB / 447.5 MB, free: 2.707 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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 7,1 8,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007726/0.236, allocations: 410.4 kB / 447.9 MB, free: 2.426 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002208/0.2382, allocations: 1.169 MB / 449.1 MB, free: 1.246 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2382, allocations: 0 / 449.1 MB, free: 1.246 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.2395, allocations: 0.7312 MB / 449.8 MB, free: 0.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007384/0.2403, allocations: 141.7 kB / 450 MB, free: 368 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003622/0.2439, allocations: 2.452 MB / 452.4 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.2444, allocations: 0.9478 MB / 453.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.2446, allocations: 71.34 kB / 453.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2446, allocations: 0 / 453.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of Templates: time 0.01808/0.2627, allocations: 17.87 MB / 471.3 MB, free: 10.91 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches