Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006559/0.006559, allocations: 101.1 kB / 15.73 MB, free: 5.992 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.001263/0.001263, allocations: 198.8 kB / 16.68 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 46.22 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1046, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007404/0.1121, allocations: 4.292 MB / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004121/0.1162, allocations: 1.345 MB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008107/0.1171, allocations: 11.94 kB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005795/0.1177, allocations: 114.9 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008961/0.1186, allocations: 229.9 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001586/0.1202, allocations: 435.2 kB / 379.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.1218, allocations: 1.135 MB / 380.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004798/0.1223, allocations: 265.6 kB / 381 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000837/0.1232, allocations: 482.5 kB / 381.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007629/0.1239, allocations: 0.5176 MB / 382 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002157/0.1242, allocations: 95.94 kB / 382.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003722/0.1245, allocations: 143.9 kB / 382.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002596/0.1248, allocations: 227.3 kB / 382.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005418/0.1254, allocations: 445.9 kB / 382.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.1265, allocations: 1.063 MB / 383.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1265, allocations: 0 / 383.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1265, allocations: 0 / 383.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.669e-05/0.1266, allocations: 0 / 383.9 MB, free: 6.492 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003465/0.13, allocations: 1.294 MB / 385.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1301, allocations: 8.031 kB / 385.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.1303, allocations: 84 kB / 385.3 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006907/0.131, allocations: 449.6 kB / 385.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.1311, allocations: 54.38 kB / 385.8 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.1312, allocations: 72.28 kB / 385.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.1329, allocations: 0.8077 MB / 386.7 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.1329, allocations: 7.984 kB / 386.7 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9e-05/0.133, allocations: 24 kB / 386.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.1331, allocations: 20 kB / 386.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002027/0.1351, allocations: 0.8627 MB / 387.6 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004106/0.1392, allocations: 2.38 MB / 390 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.1407, allocations: 0.7072 MB / 390.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009361/0.1417, allocations: 468.3 kB / 391.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.726e-05/0.1417, allocations: 9 kB / 391.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001115/0.1429, allocations: 0.5555 MB / 391.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.866e-06/0.1429, allocations: 0 / 391.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01178/0.1547, allocations: 4.224 MB / 395.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.1547, allocations: 60.41 kB / 396 MB, free: 10.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/0.1551, allocations: 397.8 kB / 396.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.367e-05/0.1552, allocations: 57.69 kB / 396.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.1554, allocations: 268.9 kB / 396.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/0.1556, allocations: 363 kB / 397 MB, free: 8.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.1559, allocations: 182.9 kB / 397.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1561, allocations: 378.8 kB / 397.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000952/0.157, allocations: 434.4 kB / 398 MB, free: 7.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.1581, allocations: 0.5344 MB / 398.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/0.1598, allocations: 0.7753 MB / 399.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1598, allocations: 11.94 kB / 399.3 MB, free: 6.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003056/0.1628, allocations: 1.35 MB / 400.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.1629, allocations: 9.094 kB / 400.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1629, allocations: 0 / 400.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.1641, allocations: 0.6543 MB / 401.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007925/0.1649, allocations: 203.7 kB / 401.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004784/0.1697, allocations: 3.438 MB / 405 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.1711, allocations: 171.9 kB / 405.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.984e-05/0.1711, allocations: 35.98 kB / 405.2 MB, free: 0.5312 MB / 334.1 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,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004953/0.1717, allocations: 237.6 kB / 405.4 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.1718, allocations: 71.16 kB / 405.5 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002231/0.172, allocations: 103 kB / 405.6 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.172, allocations: 8 kB / 405.6 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.172, allocations: 0 / 405.6 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.1721, allocations: 3.984 kB / 405.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004611/0.1767, allocations: 2.502 MB / 408.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.1767, allocations: 4 kB / 408.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008127/0.1775, allocations: 179.7 kB / 408.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.1785, allocations: 0.6192 MB / 408.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.475e-05/0.1786, allocations: 31.97 kB / 408.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003681/0.1823, allocations: 3.214 MB / 412.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1823, allocations: 4.031 kB / 412.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004428/0.1868, allocations: 1.852 MB / 414 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000473/0.1873, allocations: 228.2 kB / 414.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.1874, allocations: 32 kB / 414.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.1888, allocations: 203.7 kB / 414.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008636/0.1896, allocations: 376.4 kB / 414.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-05/0.1897, allocations: 43.95 kB / 414.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003059/0.19, allocations: 271.1 kB / 415.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.19, allocations: 0 / 415.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008362/0.1909, allocations: 244 kB / 415.4 MB, free: 5.961 MB / 350.1 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 (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,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003301/0.1912, allocations: 180.9 kB / 415.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.1938, allocations: 1.192 MB / 416.7 MB, free: 4.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.1938, allocations: 3.938 kB / 416.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.1953, allocations: 0.7858 MB / 417.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008037/0.1962, allocations: 129.8 kB / 417.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.1999, allocations: 1.952 MB / 419.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004954/0.2004, allocations: 0.9322 MB / 420.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003153/0.2007, allocations: 77.45 kB / 420.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.2009, allocations: 67.42 kB / 420.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2009, allocations: 3.938 kB / 420.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of Templates: time 0.02558/0.2265, allocations: 17.73 MB / 438.4 MB, free: 14.77 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)