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.001004/0.001004, allocations: 97.12 kB / 16.95 MB, free: 6.457 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.001394/0.001394, allocations: 181.7 kB / 17.84 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.624/1.624, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004825/0.0004828, allocations: 19.98 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1137, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005642/0.1194, allocations: 3.718 MB / 332.2 MB, free: 240 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003349/0.1228, allocations: 1.287 MB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007361/0.1236, allocations: 15.94 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004991/0.1241, allocations: 87.3 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008357/0.125, allocations: 194.4 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.1264, allocations: 339.3 kB / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.1279, allocations: 0.9985 MB / 335.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004805/0.1284, allocations: 203.1 kB / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009174/0.1293, allocations: 410.6 kB / 335.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009279/0.1302, allocations: 466.3 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002722/0.1305, allocations: 48 kB / 336.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004779/0.131, allocations: 91.95 kB / 336.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000385/0.1314, allocations: 179.3 kB / 336.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004828/0.1319, allocations: 153.3 kB / 336.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009747/0.1329, allocations: 0.7402 MB / 337.3 MB, free: 11.03 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.123e-05/0.1329, allocations: 4 kB / 337.3 MB, free: 11.03 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.1329, allocations: 0 / 337.3 MB, free: 11.03 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.1329, allocations: 0 / 337.3 MB, free: 11.03 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.003009/0.1359, allocations: 1.224 MB / 338.6 MB, free: 9.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.136, allocations: 12.03 kB / 338.6 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000165/0.1362, allocations: 114.5 kB / 338.7 MB, free: 9.621 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.1364, allocations: 90.95 kB / 338.8 MB, free: 9.531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000612/0.137, allocations: 420.7 kB / 339.2 MB, free: 9.082 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.886e-05/0.1371, allocations: 54 kB / 339.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.1373, allocations: 71.91 kB / 339.3 MB, free: 8.957 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.1389, allocations: 0.8154 MB / 340.1 MB, free: 8.137 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/0.1389, allocations: 7.984 kB / 340.1 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-05/0.139, allocations: 28 kB / 340.1 MB, free: 8.102 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.1391, allocations: 20 kB / 340.2 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.141, allocations: 0.8978 MB / 341.1 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/0.1452, allocations: 2.455 MB / 343.5 MB, free: 4.594 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.1467, allocations: 0.738 MB / 344.3 MB, free: 3.855 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000957/0.1476, allocations: 480.3 kB / 344.7 MB, free: 3.387 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.525e-05/0.1477, allocations: 13 kB / 344.7 MB, free: 3.371 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001313/0.149, allocations: 0.5595 MB / 345.3 MB, free: 2.801 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.897e-06/0.1491, allocations: 0 / 345.3 MB, free: 2.801 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01082/0.1599, allocations: 4.47 MB / 349.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.16, allocations: 64.41 kB / 349.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004923/0.1605, allocations: 393.8 kB / 350.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.006e-05/0.1606, allocations: 53.64 kB / 350.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.1608, allocations: 269 kB / 350.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/0.1611, allocations: 358.9 kB / 350.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/0.1612, allocations: 24 kB / 350.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1614, allocations: 378.7 kB / 351.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009601/0.1623, allocations: 454.4 kB / 351.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.1633, allocations: 0.5345 MB / 352.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008454/0.1642, allocations: 398.3 kB / 352.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1642, allocations: 0 / 352.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.0029/0.1671, allocations: 1.369 MB / 354 MB, free: 9.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.1672, allocations: 8 kB / 354 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1672, allocations: 7.984 kB / 354 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.1683, allocations: 0.6465 MB / 354.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/0.1691, allocations: 211.7 kB / 354.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003989/0.1731, allocations: 3.306 MB / 358.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.1743, allocations: 231.8 kB / 358.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.1745, allocations: 43.98 kB / 358.5 MB, free: 5.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.0005375/0.175, allocations: 229.5 kB / 358.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.1752, allocations: 71.28 kB / 358.7 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002547/0.1755, allocations: 103 kB / 358.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.1755, allocations: 8 kB / 358.9 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.1755, allocations: 4 kB / 358.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.1755, allocations: 7.969 kB / 358.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005165/0.1807, allocations: 2.543 MB / 361.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/0.1808, allocations: 8 kB / 361.4 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007962/0.1816, allocations: 187.9 kB / 361.6 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.1827, allocations: 0.6153 MB / 362.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.1828, allocations: 35.95 kB / 362.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003805/0.1866, allocations: 3.14 MB / 365.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1867, allocations: 0 / 365.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004014/0.1907, allocations: 1.887 MB / 367.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005025/0.1912, allocations: 236.1 kB / 367.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.1914, allocations: 35.95 kB / 367.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.1927, allocations: 271.7 kB / 367.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009372/0.1937, allocations: 428.1 kB / 368.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.1938, allocations: 39.97 kB / 368.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003466/0.1941, allocations: 267.1 kB / 368.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1942, allocations: 0 / 368.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009924/0.1952, allocations: 247.9 kB / 368.8 MB, free: 10.54 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.1995, allocations: 2.488 MB / 371.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.2022, allocations: 1.212 MB / 372.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.2022, allocations: 4 kB / 372.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00161/0.2038, allocations: 0.7859 MB / 373.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009507/0.2048, allocations: 117.5 kB / 373.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.215, allocations: 5.417 MB / 378.8 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2027/0.4178, allocations: 0.9304 MB / 379.7 MB, free: 52.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005331/0.4184, allocations: 77.92 kB / 379.8 MB, free: 52.69 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004425/0.4188, allocations: 239.2 kB / 380 MB, free: 52.68 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4188, allocations: 1.406 kB / 380 MB, free: 52.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04251/0.4613, allocations: 21.02 MB / 401.1 MB, free: 42.46 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.4615, allocations: 215.2 kB / 401.3 MB, free: 42.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.565/3.027, allocations: 4 kB / 401.3 MB, free: 42.22 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