Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_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.0009882/0.0009882, allocations: 92.89 kB / 16.3 MB, free: 5.996 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.0009753/0.0009754, allocations: 184 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002953, allocations: 6.938 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 50.43 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004512/0.1091, allocations: 3.993 MB / 355.2 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003253/0.1124, allocations: 1.795 MB / 357 MB, free: 5.777 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004256/0.1129, allocations: 19.88 kB / 357 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.1131, allocations: 119.2 kB / 357.2 MB, free: 5.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009889/0.1141, allocations: 410.8 kB / 357.6 MB, free: 5.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009039/0.115, allocations: 403.3 kB / 357.9 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.1164, allocations: 0.9942 MB / 358.9 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004148/0.1168, allocations: 257.6 kB / 359.2 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008744/0.1177, allocations: 0.588 MB / 359.8 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008157/0.1185, allocations: 0.6851 MB / 360.5 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001433/0.1187, allocations: 68 kB / 360.5 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000338/0.119, allocations: 131.9 kB / 360.7 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002688/0.1193, allocations: 263.1 kB / 360.9 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.1195, allocations: 217.1 kB / 361.1 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009836/0.1205, allocations: 1.048 MB / 362.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1205, allocations: 3.938 kB / 362.2 MB, free: 0.582 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1205, allocations: 4 kB / 362.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.1206, allocations: 0 / 362.2 MB, free: 0.5781 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.00311/0.1237, allocations: 1.383 MB / 363.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.1237, allocations: 12.03 kB / 363.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002244/0.124, allocations: 156 kB / 363.7 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004678/0.1244, allocations: 134.6 kB / 363.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009276/0.1254, allocations: 0.5803 MB / 364.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003288/0.1257, allocations: 199 kB / 364.6 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.1259, allocations: 103.9 kB / 364.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.1281, allocations: 1.251 MB / 366 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.809e-05/0.1282, allocations: 19.89 kB / 366 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.1283, allocations: 39.95 kB / 366.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.1283, allocations: 24 kB / 366.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002648/0.131, allocations: 1.37 MB / 367.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006297/0.1373, allocations: 3.738 MB / 371.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002128/0.1395, allocations: 1.069 MB / 372.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.485e-05/0.1395, allocations: 25.23 kB / 372.3 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.1396, allocations: 51.86 kB / 372.3 MB, free: 6.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 3.286e-06/0.1396, allocations: 4 kB / 372.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01368/0.1533, allocations: 5.872 MB / 378.2 MB, free: 84 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.1534, allocations: 94.42 kB / 378.3 MB, free: 15.97 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007676/0.1542, allocations: 0.5848 MB / 378.9 MB, free: 15.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.1543, allocations: 61.7 kB / 378.9 MB, free: 15.31 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.1546, allocations: 341.2 kB / 379.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.1549, allocations: 481.2 kB / 379.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/0.155, allocations: 31.98 kB / 379.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1552, allocations: 390.8 kB / 380.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.1563, allocations: 0.5856 MB / 380.7 MB, free: 13.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.1576, allocations: 0.7115 MB / 381.5 MB, free: 12.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.1587, allocations: 0.5292 MB / 382 MB, free: 12.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1587, allocations: 0 / 382 MB, free: 12.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003642/0.1623, allocations: 1.849 MB / 383.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.1624, allocations: 4 kB / 383.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1624, allocations: 4.031 kB / 383.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/0.1642, allocations: 0.9618 MB / 384.8 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.1654, allocations: 255.7 kB / 385.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.1678, allocations: 2.005 MB / 387.1 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.1691, allocations: 211.8 kB / 387.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.1692, allocations: 47.98 kB / 387.3 MB, free: 6.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005118/0.1697, allocations: 265.6 kB / 387.6 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.1699, allocations: 90.92 kB / 387.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002531/0.1701, allocations: 133.2 kB / 387.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.1702, allocations: 16 kB / 387.8 MB, free: 6.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/0.1702, allocations: 3.938 kB / 387.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.1702, allocations: 7.984 kB / 387.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005898/0.1761, allocations: 3.331 MB / 391.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.1761, allocations: 0 / 391.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.1772, allocations: 251.8 kB / 391.4 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/0.1789, allocations: 0.907 MB / 392.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.1791, allocations: 47.94 kB / 392.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.1813, allocations: 1.94 MB / 394.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1814, allocations: 4 kB / 394.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005138/0.1865, allocations: 2.653 MB / 396.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005554/0.1871, allocations: 295.8 kB / 397.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001847/0.1873, allocations: 40 kB / 397.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.1884, allocations: 219.8 kB / 397.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004085/0.1888, allocations: 220.9 kB / 397.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.1889, allocations: 55.94 kB / 397.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005305/0.1895, allocations: 418.8 kB / 398.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1895, allocations: 0 / 398.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009145/0.1904, allocations: 316 kB / 398.5 MB, free: 11.45 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.005743/0.1961, allocations: 3.404 MB / 401.9 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00325/0.1994, allocations: 1.52 MB / 403.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.1995, allocations: 4.312 kB / 403.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.2013, allocations: 0.8635 MB / 404.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009796/0.2023, allocations: 144.7 kB / 404.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01668/0.219, allocations: 8.92 MB / 413.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005988/0.2197, allocations: 1.043 MB / 414.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005723/0.2202, allocations: 135.2 kB / 414.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000478/0.2207, allocations: 343.3 kB / 414.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of SimCode: time 1.021e-06/0.2207, allocations: 0 / 414.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2526/0.4734, allocations: 27.15 MB / 442 MB, free: 61.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.4736, allocations: 214.4 kB / 442.2 MB, free: 61.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/2.997, allocations: 0 / 442.2 MB, free: 61.03 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat