Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009871/0.0009871, allocations: 93.98 kB / 16.94 MB, free: 6.441 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.0009851/0.0009852, allocations: 188.9 kB / 17.83 MB, free: 6.008 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.644/1.644, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.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.0007004/0.0007007, allocations: 15.44 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1175, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003699/0.1213, allocations: 3.497 MB / 331.9 MB, free: 488 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.1237, allocations: 1.311 MB / 333.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002838/0.124, allocations: 11.94 kB / 333.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.1242, allocations: 79.38 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004223/0.1246, allocations: 247.3 kB / 333.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009114/0.1255, allocations: 331.3 kB / 333.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007476/0.1263, allocations: 0.6962 MB / 334.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003078/0.1266, allocations: 199.1 kB / 334.8 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004301/0.127, allocations: 410.7 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004774/0.1275, allocations: 462.3 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.978e-05/0.1276, allocations: 48 kB / 335.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002117/0.1279, allocations: 91.95 kB / 335.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.128, allocations: 171.4 kB / 335.9 MB, free: 12.44 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.1282, allocations: 153.3 kB / 336.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006556/0.1288, allocations: 0.7478 MB / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1289, allocations: 0 / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1289, allocations: 0 / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1289, allocations: 0 / 336.8 MB, free: 11.53 MB / 286.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.002887/0.1318, allocations: 1.217 MB / 338 MB, free: 10.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1318, allocations: 12.03 kB / 338.1 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001445/0.132, allocations: 114.5 kB / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.1322, allocations: 86.97 kB / 338.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006644/0.1329, allocations: 424.6 kB / 338.7 MB, free: 9.594 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.586e-05/0.133, allocations: 54 kB / 338.7 MB, free: 9.539 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.1331, allocations: 79.88 kB / 338.8 MB, free: 9.461 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.1347, allocations: 0.8115 MB / 339.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.1348, allocations: 4 kB / 339.6 MB, free: 8.641 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.992e-05/0.1348, allocations: 28 kB / 339.6 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.1349, allocations: 20 kB / 339.7 MB, free: 8.594 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.1367, allocations: 0.8939 MB / 340.6 MB, free: 7.699 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004002/0.1407, allocations: 2.459 MB / 343 MB, free: 5.105 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.1421, allocations: 0.7308 MB / 343.7 MB, free: 4.371 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-05/0.1422, allocations: 16.98 kB / 343.8 MB, free: 4.355 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.1433, allocations: 0.5595 MB / 344.3 MB, free: 3.785 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.305e-06/0.1433, allocations: 0 / 344.3 MB, free: 3.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01058/0.1539, allocations: 4.465 MB / 348.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.154, allocations: 64.41 kB / 348.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.1544, allocations: 393.8 kB / 349.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.605e-05/0.1545, allocations: 53.7 kB / 349.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.1548, allocations: 280.8 kB / 349.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002855/0.155, allocations: 351.1 kB / 349.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.1551, allocations: 23.98 kB / 349.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1553, allocations: 370.8 kB / 350.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008916/0.1562, allocations: 450.4 kB / 350.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009587/0.1572, allocations: 0.5384 MB / 351.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008283/0.158, allocations: 398.3 kB / 351.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.158, allocations: 0 / 351.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002817/0.1608, allocations: 1.373 MB / 353 MB, free: 10.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1609, allocations: 4 kB / 353 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.1609, allocations: 4 kB / 353 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.162, allocations: 0.6426 MB / 353.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000766/0.1627, allocations: 215.7 kB / 353.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003881/0.1666, allocations: 3.302 MB / 357.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.1678, allocations: 239.9 kB / 357.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-05/0.1679, allocations: 35.98 kB / 357.5 MB, free: 6.234 MB / 302.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,$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 (115): * Single equations (assignments): 112 * 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 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003747/0.1683, allocations: 229.5 kB / 357.7 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.1684, allocations: 67.25 kB / 357.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002062/0.1686, allocations: 103 kB / 357.9 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1686, allocations: 12 kB / 357.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.1687, allocations: 3.938 kB / 357.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.1687, allocations: 4.172 kB / 357.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004399/0.1731, allocations: 2.562 MB / 360.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.1731, allocations: 8.062 kB / 360.4 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007631/0.1739, allocations: 179.8 kB / 360.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00098/0.1749, allocations: 0.6193 MB / 361.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.913e-05/0.175, allocations: 39.89 kB / 361.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003407/0.1784, allocations: 3.151 MB / 364.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.1784, allocations: 3.938 kB / 364.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003783/0.1822, allocations: 1.958 MB / 366.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004484/0.1827, allocations: 244 kB / 366.6 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.1828, allocations: 28 kB / 366.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.1841, allocations: 275.7 kB / 366.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008552/0.185, allocations: 428.1 kB / 367.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.681e-05/0.1851, allocations: 51.89 kB / 367.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003075/0.1854, allocations: 267.1 kB / 367.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1854, allocations: 0 / 367.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008627/0.1863, allocations: 244 kB / 367.9 MB, free: 11.38 MB / 318.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 (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 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004293/0.1906, allocations: 3.048 MB / 370.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.1931, allocations: 1.208 MB / 372.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.1931, allocations: 0 / 372.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.1948, allocations: 0.7859 MB / 372.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000772/0.1955, allocations: 109.1 kB / 373 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1929/0.3885, allocations: 6.165 MB / 379.2 MB, free: 53.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.3892, allocations: 0.9457 MB / 380.1 MB, free: 52.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005763/0.3898, allocations: 81.59 kB / 380.2 MB, free: 52.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004727/0.3902, allocations: 244.1 kB / 380.5 MB, free: 52.55 MB / 318.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3902, allocations: 0 / 380.5 MB, free: 52.55 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04302/0.4333, allocations: 20.97 MB / 401.4 MB, free: 42.13 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/0.4335, allocations: 217.6 kB / 401.7 MB, free: 41.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/2.786, allocations: 7.938 kB / 401.7 MB, free: 41.88 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat