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.0009366/0.0009368, allocations: 96.84 kB / 16.93 MB, free: 5.98 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.001019/0.001019, allocations: 180.9 kB / 17.82 MB, free: 5.652 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.441/1.441, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004394/0.0004395, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09132, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004721/0.09609, allocations: 4.02 MB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003801/0.09994, allocations: 1.768 MB / 334.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000551/0.1005, allocations: 15.88 kB / 334.2 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.1008, allocations: 131.2 kB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.1019, allocations: 402.8 kB / 334.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009942/0.1029, allocations: 403.3 kB / 335.1 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.1043, allocations: 1.002 MB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003994/0.1047, allocations: 245.6 kB / 336.4 MB, free: 12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009444/0.1057, allocations: 0.5919 MB / 337 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008106/0.1065, allocations: 0.6851 MB / 337.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.1066, allocations: 64 kB / 337.7 MB, free: 10.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003307/0.107, allocations: 135.9 kB / 337.8 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002665/0.1073, allocations: 271.1 kB / 338.1 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002425/0.1075, allocations: 209.1 kB / 338.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.1086, allocations: 1.052 MB / 339.4 MB, free: 8.988 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1086, allocations: 3.938 kB / 339.4 MB, free: 8.984 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1086, allocations: 0 / 339.4 MB, free: 8.984 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.1086, allocations: 0 / 339.4 MB, free: 8.984 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.003087/0.1117, allocations: 1.38 MB / 340.8 MB, free: 7.551 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1118, allocations: 12.03 kB / 340.8 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002107/0.112, allocations: 148 kB / 340.9 MB, free: 7.387 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004359/0.1124, allocations: 142.5 kB / 341 MB, free: 7.246 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009047/0.1133, allocations: 0.5764 MB / 341.6 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003095/0.1137, allocations: 199.1 kB / 341.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.1138, allocations: 107.8 kB / 341.9 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.1161, allocations: 1.259 MB / 343.2 MB, free: 5.031 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.111e-05/0.1162, allocations: 7.906 kB / 343.2 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.1163, allocations: 40 kB / 343.2 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.1164, allocations: 24 kB / 343.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/0.1191, allocations: 1.37 MB / 344.6 MB, free: 3.594 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006452/0.1256, allocations: 3.749 MB / 348.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/0.1278, allocations: 1.069 MB / 349.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.07e-05/0.1279, allocations: 17.3 kB / 349.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.1279, allocations: 43.88 kB / 349.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 3.597e-06/0.1279, allocations: 0 / 349.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.0134/0.1413, allocations: 5.892 MB / 355.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.1414, allocations: 90.42 kB / 355.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006817/0.1421, allocations: 0.5848 MB / 356.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.1422, allocations: 61.7 kB / 356.1 MB, free: 7.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.1424, allocations: 341.1 kB / 356.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003522/0.1428, allocations: 477.3 kB / 356.9 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-05/0.1429, allocations: 31.98 kB / 357 MB, free: 6.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1431, allocations: 390.8 kB / 357.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.1442, allocations: 0.5818 MB / 357.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.1454, allocations: 0.7193 MB / 358.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009673/0.1464, allocations: 0.5213 MB / 359.2 MB, free: 4.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1464, allocations: 3.938 kB / 359.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003556/0.15, allocations: 1.861 MB / 361 MB, free: 2.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.15, allocations: 4 kB / 361 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.15, allocations: 4 kB / 361 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001873/0.1519, allocations: 0.9579 MB / 362 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.1531, allocations: 259.7 kB / 362.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/0.1558, allocations: 1.997 MB / 364.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.157, allocations: 207.9 kB / 364.4 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.1572, allocations: 51.98 kB / 364.5 MB, free: 15.23 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.0004938/0.1577, allocations: 269.6 kB / 364.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.1578, allocations: 86.97 kB / 364.8 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.1581, allocations: 137.2 kB / 365 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.1581, allocations: 12 kB / 365 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.1582, allocations: 11.89 kB / 365 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.1582, allocations: 3.984 kB / 365 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006059/0.1642, allocations: 3.331 MB / 368.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.1643, allocations: 3.953 kB / 368.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.1654, allocations: 255.8 kB / 368.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001713/0.1671, allocations: 0.9107 MB / 369.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.1672, allocations: 47.94 kB / 369.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.1695, allocations: 1.929 MB / 371.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1696, allocations: 0 / 371.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00499/0.1746, allocations: 2.645 MB / 374.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005828/0.1752, allocations: 299.8 kB / 374.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001881/0.1754, allocations: 40 kB / 374.5 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.1764, allocations: 215.9 kB / 374.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004059/0.1769, allocations: 224.8 kB / 374.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.177, allocations: 59.94 kB / 374.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000526/0.1775, allocations: 418.8 kB / 375.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1775, allocations: 0 / 375.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000907/0.1784, allocations: 324 kB / 375.7 MB, free: 3.852 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.005701/0.1841, allocations: 3.408 MB / 379.1 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.1581/0.3423, allocations: 1.513 MB / 380.6 MB, free: 54.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.3424, allocations: 0 / 380.6 MB, free: 54.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00238/0.3447, allocations: 0.8627 MB / 381.4 MB, free: 54.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3458, allocations: 126.8 kB / 381.6 MB, free: 54.31 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/0.3627, allocations: 8.932 MB / 390.5 MB, free: 50.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.3635, allocations: 1.046 MB / 391.6 MB, free: 49.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006879/0.3642, allocations: 130.5 kB / 391.7 MB, free: 49.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004795/0.3647, allocations: 348.1 kB / 392 MB, free: 49.17 MB / 318.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3647, allocations: 0.6562 kB / 392 MB, free: 49.17 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04635/0.4111, allocations: 27.16 MB / 419.2 MB, free: 26.09 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.4113, allocations: 214.5 kB / 419.4 MB, free: 25.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.541/2.952, allocations: 4 kB / 419.4 MB, free: 25.83 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