Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 175 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.222/1.222, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007618/0.0007618, allocations: 95.8 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000305/0.000305, allocations: 15.98 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1982, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.003806/0.2021, allocations: 4.339 MB / 379.5 MB, free: 42.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.2048, allocations: 1.714 MB / 381.2 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000362/0.2052, allocations: 15.66 kB / 381.3 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.2055, allocations: 129.2 kB / 381.4 MB, free: 40.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007222/0.2062, allocations: 345 kB / 381.7 MB, free: 40.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007206/0.2069, allocations: 401.6 kB / 382.1 MB, free: 39.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.2081, allocations: 1.432 MB / 383.5 MB, free: 39.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003816/0.2085, allocations: 283.4 kB / 383.8 MB, free: 38.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007331/0.2092, allocations: 0.5933 MB / 384.4 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006292/0.2099, allocations: 0.6843 MB / 385.1 MB, free: 38.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001532/0.21, allocations: 65.44 kB / 385.2 MB, free: 38.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.2104, allocations: 144 kB / 385.3 MB, free: 38.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.2106, allocations: 263.9 kB / 385.6 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004535/0.2111, allocations: 0.5485 MB / 386.1 MB, free: 37.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000726/0.2118, allocations: 1.062 MB / 387.2 MB, free: 36.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2118, allocations: 0 / 387.2 MB, free: 36.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2118, allocations: 4 kB / 387.2 MB, free: 36.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.2119, allocations: 0 / 387.2 MB, free: 36.66 MB / 298.7 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.002515/0.2144, allocations: 1.376 MB / 388.5 MB, free: 35.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2144, allocations: 12.03 kB / 388.6 MB, free: 35.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001465/0.2146, allocations: 156.1 kB / 388.7 MB, free: 35.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003912/0.215, allocations: 139.5 kB / 388.8 MB, free: 34.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006399/0.2156, allocations: 0.5891 MB / 389.4 MB, free: 34.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.2159, allocations: 207.2 kB / 389.6 MB, free: 34.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.216, allocations: 111.8 kB / 389.7 MB, free: 33.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/0.2179, allocations: 1.263 MB / 391 MB, free: 32.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.383e-05/0.2179, allocations: 19.83 kB / 391 MB, free: 32.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-05/0.218, allocations: 40 kB / 391.1 MB, free: 32.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.2181, allocations: 20 kB / 391.1 MB, free: 32.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002258/0.2203, allocations: 1.37 MB / 392.5 MB, free: 31.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004818/0.2252, allocations: 3.743 MB / 396.2 MB, free: 27.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.2269, allocations: 1.068 MB / 397.3 MB, free: 26.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.2279, allocations: 0.6848 MB / 398 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.572e-05/0.228, allocations: 17.3 kB / 398 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.228, allocations: 51.81 kB / 398 MB, free: 25.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=129): time 2.645e-06/0.2281, allocations: 0 / 398 MB, free: 25.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.01123/0.2393, allocations: 5.901 MB / 403.9 MB, free: 19.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.2394, allocations: 94.36 kB / 404 MB, free: 19.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000527/0.2399, allocations: 0.5925 MB / 404.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.66e-05/0.24, allocations: 65.69 kB / 404.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.2401, allocations: 329.3 kB / 405 MB, free: 18.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.2404, allocations: 485.3 kB / 405.5 MB, free: 17.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.883e-05/0.2405, allocations: 28 kB / 405.5 MB, free: 17.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.727e-05/0.2406, allocations: 394.7 kB / 405.9 MB, free: 17.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009274/0.2415, allocations: 0.5818 MB / 406.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009625/0.2425, allocations: 0.7193 MB / 407.2 MB, free: 16.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.2441, allocations: 1.069 MB / 408.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2441, allocations: 0 / 408.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00298/0.2471, allocations: 1.853 MB / 410.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.2471, allocations: 4 kB / 410.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.2471, allocations: 4 kB / 410.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.2486, allocations: 0.9657 MB / 411.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008824/0.2495, allocations: 259.6 kB / 411.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/0.2513, allocations: 1.997 MB / 413.3 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.2524, allocations: 207.9 kB / 413.5 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.235e-05/0.2525, allocations: 55.97 kB / 413.6 MB, free: 9.605 MB / 298.7 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.0003866/0.2529, allocations: 274.1 kB / 413.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.253, allocations: 86.97 kB / 413.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/0.2533, allocations: 133.2 kB / 414.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.2533, allocations: 12 kB / 414.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.2533, allocations: 3.938 kB / 414.1 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.2533, allocations: 7.969 kB / 414.1 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/0.2581, allocations: 3.331 MB / 417.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.2581, allocations: 64 / 417.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000993/0.2591, allocations: 263.6 kB / 417.7 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/0.2606, allocations: 0.9109 MB / 418.6 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.239e-05/0.2607, allocations: 43.95 kB / 418.6 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.2623, allocations: 1.944 MB / 420.6 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2624, allocations: 0 / 420.6 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004234/0.2666, allocations: 2.622 MB / 423.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004572/0.2671, allocations: 299.8 kB / 423.5 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001627/0.2672, allocations: 36 kB / 423.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.2683, allocations: 211.8 kB / 423.7 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004502/0.2687, allocations: 224.9 kB / 424 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.2688, allocations: 59.88 kB / 424 MB, free: 14.97 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004751/0.2693, allocations: 418.8 kB / 424.4 MB, free: 14.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2693, allocations: 0 / 424.4 MB, free: 14.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007963/0.2701, allocations: 320 kB / 424.7 MB, free: 14.25 MB / 314.7 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.005289/0.2754, allocations: 3.251 MB / 428 MB, free: 10.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002877/0.2783, allocations: 1.523 MB / 429.5 MB, free: 9.441 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.2784, allocations: 0 / 429.5 MB, free: 9.441 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.28, allocations: 0.8521 MB / 430.4 MB, free: 8.586 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009802/0.281, allocations: 152.1 kB / 430.5 MB, free: 8.438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.2962, allocations: 8.085 MB / 438.6 MB, free: 184 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005728/0.2968, allocations: 1.031 MB / 439.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005842/0.2974, allocations: 355.2 kB / 440 MB, free: 14.78 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.2974, allocations: 0 / 440 MB, free: 14.78 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.958/6.256, allocations: 21.37 MB / 461.3 MB, free: 9.363 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)