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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009643/0.0009643, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.226/1.226, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008131/0.0008131, allocations: 102 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000236/0.000236, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.201, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09985/0.3009, allocations: 87.62 MB / 463.5 MB, free: 9.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.3012, allocations: 75.95 kB / 463.6 MB, free: 8.953 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06385/0.365, allocations: 23.19 MB / 486.8 MB, free: 1.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3651, allocations: 0 / 486.8 MB, free: 1.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.985e-05/0.3651, allocations: 16 kB / 486.8 MB, free: 1.688 MB / 362.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.003035/0.3681, allocations: 1.352 MB / 488.2 MB, free: 288 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3682, allocations: 8.031 kB / 488.2 MB, free: 280 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002074/0.3684, allocations: 152 kB / 488.3 MB, free: 120 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004646/0.3689, allocations: 134.6 kB / 488.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.3698, allocations: 0.5528 MB / 489 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/0.3701, allocations: 195.1 kB / 489.2 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.3703, allocations: 103.9 kB / 489.3 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002271/0.3726, allocations: 1.22 MB / 490.5 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/0.3726, allocations: 11.91 kB / 490.5 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.3727, allocations: 36 kB / 490.6 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.3728, allocations: 24 kB / 490.6 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002654/0.3754, allocations: 1.292 MB / 491.9 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006466/0.3819, allocations: 3.704 MB / 495.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.3838, allocations: 1.017 MB / 496.6 MB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.133e-05/0.3839, allocations: 21.3 kB / 496.6 MB, free: 7.562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.384, allocations: 43.88 kB / 496.7 MB, free: 7.512 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 3.256e-06/0.384, allocations: 4 kB / 496.7 MB, free: 7.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01333/0.3973, allocations: 5.778 MB / 0.4907 GB, free: 1.574 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/0.3974, allocations: 94.42 kB / 0.4908 GB, free: 1.461 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006271/0.3981, allocations: 446 kB / 0.4912 GB, free: 1.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001319/0.3982, allocations: 65.69 kB / 0.4912 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.3985, allocations: 317.5 kB / 0.4915 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003836/0.3988, allocations: 0.4931 MB / 0.492 GB, free: 136 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.399, allocations: 24 kB / 0.492 GB, free: 112 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.1471/0.5461, allocations: 398.7 kB / 0.4924 GB, free: 103.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001764/0.5479, allocations: 0.5376 MB / 0.493 GB, free: 103.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.5492, allocations: 0.6716 MB / 0.4936 GB, free: 103.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.5503, allocations: 486.9 kB / 0.4941 GB, free: 103.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.5503, allocations: 0 / 0.4941 GB, free: 103.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003403/0.5537, allocations: 1.704 MB / 0.4957 GB, free: 103.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.5538, allocations: 6.781 kB / 0.4957 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/0.5538, allocations: 3.688 kB / 0.4957 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/0.5554, allocations: 0.8167 MB / 0.4965 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000982/0.5564, allocations: 257.5 kB / 0.4968 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/0.5584, allocations: 1.881 MB / 0.4986 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.5596, allocations: 210.3 kB / 0.4988 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.5598, allocations: 63.08 kB / 0.4989 GB, free: 102 MB / 378.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 ($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,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0005003/0.5603, allocations: 261.7 kB / 0.4991 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.5605, allocations: 88.66 kB / 0.4992 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.5641, allocations: 1.918 MB / 0.5011 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.5641, allocations: 16.78 kB / 0.5011 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.5642, allocations: 0 / 0.5011 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.5642, allocations: 10.94 kB / 0.5011 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006294/0.5705, allocations: 3.186 MB / 0.5042 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5705, allocations: 0 / 0.5042 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.5716, allocations: 261.8 kB / 0.5045 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001384/0.573, allocations: 0.7623 MB / 0.5052 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.5731, allocations: 48.55 kB / 0.5053 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.5749, allocations: 1.826 MB / 0.5071 GB, free: 98.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5749, allocations: 3 kB / 0.5071 GB, free: 98.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004011/0.5789, allocations: 2.491 MB / 0.5095 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005334/0.5795, allocations: 296.7 kB / 0.5098 GB, free: 97.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000214/0.5797, allocations: 39.84 kB / 0.5098 GB, free: 97.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.5808, allocations: 214.2 kB / 0.51 GB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003583/0.5811, allocations: 229.2 kB / 0.5102 GB, free: 97.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.5813, allocations: 60.53 kB / 0.5103 GB, free: 97.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003956/0.5817, allocations: 358.1 kB / 0.5106 GB, free: 97.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5817, allocations: 2.125 kB / 0.5106 GB, free: 97.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008886/0.5826, allocations: 328.6 kB / 0.5109 GB, free: 97.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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.004472/0.587, allocations: 3.399 MB / 0.5143 GB, free: 95.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.5897, allocations: 1.538 MB / 0.5158 GB, free: 94.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.5897, allocations: 0 / 0.5158 GB, free: 94.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.5912, allocations: 0.8493 MB / 0.5166 GB, free: 94.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007679/0.592, allocations: 143.2 kB / 0.5167 GB, free: 94.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.6055, allocations: 8.582 MB / 0.5251 GB, free: 87.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.606, allocations: 1.046 MB / 0.5261 GB, free: 86.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006188/0.6066, allocations: 133.5 kB / 0.5263 GB, free: 86.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000489/0.6071, allocations: 346.5 kB / 0.5266 GB, free: 86.34 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6071, allocations: 0 / 0.5266 GB, free: 86.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04061/0.6478, allocations: 26.42 MB / 0.5524 GB, free: 61.29 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/0.648, allocations: 211.9 kB / 0.5526 GB, free: 61.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.813/3.461, allocations: 0 / 0.5526 GB, free: 61.05 MB / 378.7 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) 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