Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001082/0.001082, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007352/0.0007351, allocations: 100.4 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002565, allocations: 4 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1805, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.003351/0.1839, allocations: 4.49 MB / 412.6 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.1864, allocations: 1.923 MB / 414.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003199/0.1867, allocations: 15.94 kB / 414.6 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003268/0.1871, allocations: 147 kB / 414.7 MB, free: 21.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006495/0.1877, allocations: 413.3 kB / 415.1 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006616/0.1884, allocations: 387.4 kB / 415.5 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009068/0.1893, allocations: 1.506 MB / 417 MB, free: 18.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003138/0.1897, allocations: 277.1 kB / 417.3 MB, free: 18.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005568/0.1902, allocations: 0.6424 MB / 417.9 MB, free: 17.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005154/0.1907, allocations: 0.7397 MB / 418.6 MB, free: 17.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.1909, allocations: 68 kB / 418.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003105/0.1912, allocations: 152 kB / 418.9 MB, free: 16.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.1914, allocations: 299 kB / 419.1 MB, free: 16.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003701/0.1918, allocations: 0.5771 MB / 419.7 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006761/0.1925, allocations: 1.147 MB / 420.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1925, allocations: 0 / 420.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1925, allocations: 3.984 kB / 420.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1925, allocations: 8 kB / 420.9 MB, free: 14.89 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002648/0.1952, allocations: 1.434 MB / 422.3 MB, free: 13.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.1952, allocations: 8.031 kB / 422.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.1954, allocations: 152.3 kB / 422.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005279/0.1959, allocations: 167.4 kB / 422.6 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006942/0.1966, allocations: 0.6122 MB / 423.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002664/0.1969, allocations: 199.2 kB / 423.4 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.1971, allocations: 111.9 kB / 423.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.199, allocations: 1.243 MB / 424.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.473e-05/0.199, allocations: 11.91 kB / 424.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.841e-05/0.1991, allocations: 36 kB / 424.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.1991, allocations: 24 kB / 424.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002322/0.2015, allocations: 1.308 MB / 426.2 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005042/0.2065, allocations: 3.761 MB / 429.9 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.2083, allocations: 1.081 MB / 431 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.2094, allocations: 0.6568 MB / 431.7 MB, free: 3.777 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-05/0.2095, allocations: 17.3 kB / 431.7 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.2095, allocations: 56.38 kB / 431.7 MB, free: 3.699 MB / 298.7 MB Notification: Performance of pre-optimization done (n=136): time 2.935e-06/0.2095, allocations: 0 / 431.7 MB, free: 3.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=148): time 0.01209/0.2216, allocations: 5.711 MB / 437.5 MB, free: 13.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/0.2217, allocations: 98.36 kB / 437.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007538/0.2225, allocations: 0.6161 MB / 438.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.2226, allocations: 65.69 kB / 438.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.2228, allocations: 345.4 kB / 438.6 MB, free: 12.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003741/0.2232, allocations: 0.5008 MB / 439.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.862e-05/0.2233, allocations: 28 kB / 439.1 MB, free: 12.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.2235, allocations: 402.7 kB / 439.5 MB, free: 11.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.2247, allocations: 0.531 MB / 440 MB, free: 11.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.2259, allocations: 0.6763 MB / 440.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001922/0.2278, allocations: 0.9834 MB / 441.7 MB, free: 9.504 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2278, allocations: 0 / 441.7 MB, free: 9.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003265/0.2311, allocations: 1.679 MB / 443.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.2311, allocations: 8 kB / 443.4 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2311, allocations: 0 / 443.4 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00177/0.2329, allocations: 0.7772 MB / 444.1 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000986/0.2339, allocations: 263.6 kB / 444.4 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.2362, allocations: 1.939 MB / 446.3 MB, free: 4.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.2375, allocations: 211.9 kB / 446.5 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.2376, allocations: 47.98 kB / 446.6 MB, free: 4.516 MB / 314.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 (126): * Single equations (assignments): 124 * 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 45,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0005096/0.2381, allocations: 281.6 kB / 446.9 MB, free: 4.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.2383, allocations: 102.7 kB / 447 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003068/0.2386, allocations: 137.8 kB / 447.1 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.2387, allocations: 16 kB / 447.1 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.2387, allocations: 0 / 447.1 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.2387, allocations: 7.969 kB / 447.1 MB, free: 3.965 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006254/0.245, allocations: 3.294 MB / 450.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.245, allocations: 4 kB / 450.4 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.2461, allocations: 259.8 kB / 450.7 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001631/0.2477, allocations: 0.7302 MB / 451.4 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.2479, allocations: 59.81 kB / 451.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.2501, allocations: 1.867 MB / 453.3 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.2501, allocations: 3.938 kB / 453.3 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004831/0.2549, allocations: 2.475 MB / 455.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005385/0.2555, allocations: 319.6 kB / 456.1 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002092/0.2557, allocations: 44 kB / 456.2 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.2568, allocations: 215.7 kB / 456.4 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005027/0.2574, allocations: 240.9 kB / 456.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.2575, allocations: 55.89 kB / 456.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005602/0.258, allocations: 442.8 kB / 457.1 MB, free: 9.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.258, allocations: 4 kB / 457.1 MB, free: 9.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008565/0.2589, allocations: 320 kB / 457.4 MB, free: 9.484 MB / 330.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,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,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 (95): * Single equations (assignments): 93 * 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 7,4 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.005891/0.2648, allocations: 3.323 MB / 460.7 MB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002996/0.2678, allocations: 1.451 MB / 462.2 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2679, allocations: 4.312 kB / 462.2 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.2696, allocations: 0.8221 MB / 463 MB, free: 3.977 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.2707, allocations: 191.2 kB / 463.2 MB, free: 3.789 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/0.2864, allocations: 7.914 MB / 471.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006029/0.287, allocations: 1.047 MB / 472.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006503/0.2877, allocations: 383.2 kB / 472.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2877, allocations: 0 / 472.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.424/4.712, allocations: 22.34 MB / 494.9 MB, free: 3.855 MB / 362.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)