Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_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.0008282/0.0008282, allocations: 94.95 kB / 16.95 MB, free: 6.027 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.0009107/0.0009108, allocations: 177.7 kB / 17.83 MB, free: 5.672 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.482/1.482, 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.0004658/0.0004658, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1048, allocations: 47.58 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005006/0.1098, allocations: 4.334 MB / 332.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.1134, allocations: 1.709 MB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004344/0.1139, allocations: 15.94 kB / 334.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000332/0.1142, allocations: 131.1 kB / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008013/0.1151, allocations: 345.7 kB / 335 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008601/0.1159, allocations: 407.3 kB / 335.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.1174, allocations: 1.428 MB / 336.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004325/0.1178, allocations: 245.6 kB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008008/0.1186, allocations: 0.5956 MB / 337.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008209/0.1195, allocations: 0.6852 MB / 338.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001467/0.1196, allocations: 64 kB / 338.4 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.12, allocations: 143.9 kB / 338.5 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002909/0.1203, allocations: 267.1 kB / 338.8 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002571/0.1205, allocations: 209.1 kB / 339 MB, free: 9.375 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.1216, allocations: 1.056 MB / 340 MB, free: 8.316 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1216, allocations: 0 / 340 MB, free: 8.316 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1216, allocations: 0 / 340 MB, free: 8.316 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.1217, allocations: 0 / 340 MB, free: 8.316 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.002924/0.1246, allocations: 1.391 MB / 341.4 MB, free: 6.871 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1246, allocations: 8.031 kB / 341.4 MB, free: 6.863 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000321/0.125, allocations: 152 kB / 341.6 MB, free: 6.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00047/0.1254, allocations: 134.6 kB / 341.7 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009469/0.1264, allocations: 0.5842 MB / 342.3 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/0.1267, allocations: 199 kB / 342.5 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.1269, allocations: 103.8 kB / 342.6 MB, free: 5.633 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002283/0.1292, allocations: 1.271 MB / 343.9 MB, free: 4.344 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.351e-05/0.1293, allocations: 15.89 kB / 343.9 MB, free: 4.328 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.1294, allocations: 36 kB / 343.9 MB, free: 4.293 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.1294, allocations: 28 kB / 344 MB, free: 4.266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002922/0.1323, allocations: 1.366 MB / 345.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00648/0.1388, allocations: 3.745 MB / 349.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.141, allocations: 1.073 MB / 350.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.1423, allocations: 0.6867 MB / 350.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-05/0.1424, allocations: 17.3 kB / 350.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.1424, allocations: 43.88 kB / 350.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 2.866e-06/0.1424, allocations: 0 / 350.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01313/0.1556, allocations: 5.897 MB / 356.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.217e-05/0.1557, allocations: 94.42 kB / 356.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007563/0.1565, allocations: 0.5925 MB / 357.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.1566, allocations: 65.69 kB / 357.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002735/0.1569, allocations: 329.2 kB / 357.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003823/0.1573, allocations: 473.4 kB / 358.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-05/0.1574, allocations: 32 kB / 358.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1575, allocations: 398.7 kB / 358.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.1587, allocations: 0.5818 MB / 359.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.1599, allocations: 0.7232 MB / 360 MB, free: 3.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.1609, allocations: 0.5175 MB / 360.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1609, allocations: 0 / 360.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003539/0.1645, allocations: 1.853 MB / 362.4 MB, free: 1.383 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.1645, allocations: 15.98 kB / 362.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1645, allocations: 0 / 362.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/0.1664, allocations: 0.9579 MB / 363.4 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.1674, allocations: 263.6 kB / 363.6 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.1701, allocations: 2.001 MB / 365.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.1713, allocations: 207.9 kB / 365.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.1715, allocations: 48.06 kB / 365.9 MB, free: 13.84 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.0005418/0.172, allocations: 265.4 kB / 366.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.1722, allocations: 90.97 kB / 366.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.1725, allocations: 133.2 kB / 366.4 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.1725, allocations: 19.95 kB / 366.4 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.1726, allocations: 0 / 366.4 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.1726, allocations: 11.97 kB / 366.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005931/0.1785, allocations: 3.327 MB / 369.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.1786, allocations: 4 kB / 369.7 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.1796, allocations: 259.8 kB / 370 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/0.1814, allocations: 0.9148 MB / 370.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.1815, allocations: 43.95 kB / 370.9 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/0.1838, allocations: 1.932 MB / 372.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1838, allocations: 4.156 kB / 372.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004922/0.1887, allocations: 2.63 MB / 375.5 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005432/0.1893, allocations: 295.8 kB / 375.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/0.1895, allocations: 39.94 kB / 375.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009822/0.1905, allocations: 215.8 kB / 376 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004038/0.1909, allocations: 228.8 kB / 376.3 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-05/0.191, allocations: 51.95 kB / 376.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005051/0.1915, allocations: 414.8 kB / 376.7 MB, free: 2.805 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1915, allocations: 0 / 376.7 MB, free: 2.805 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008803/0.1924, allocations: 328 kB / 377 MB, free: 2.484 MB / 318.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.1821/0.3745, allocations: 3.23 MB / 380.3 MB, free: 53.65 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004187/0.3788, allocations: 1.521 MB / 381.8 MB, free: 53.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3788, allocations: 0 / 381.8 MB, free: 53.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001977/0.3808, allocations: 0.858 MB / 382.7 MB, free: 53.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.382, allocations: 156.5 kB / 382.8 MB, free: 53.6 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01648/0.3984, allocations: 8.042 MB / 390.9 MB, free: 50.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/0.399, allocations: 1.027 MB / 391.9 MB, free: 49.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006385/0.3997, allocations: 132.1 kB / 392 MB, free: 49.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004768/0.4002, allocations: 341.4 kB / 392.3 MB, free: 49.01 MB / 318.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4002, allocations: 5.25 kB / 392.3 MB, free: 49 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05586/0.456, allocations: 27.21 MB / 419.6 MB, free: 25.21 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.4563, allocations: 215.8 kB / 419.8 MB, free: 24.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.731/3.187, allocations: 0 / 419.8 MB, free: 24.96 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat