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.0009498/0.0009499, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.481/1.481, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0007599/0.0007598, allocations: 86.62 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.912e-05/2.926e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08962/0.08967, allocations: 47.58 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3171/0.4068, allocations: 87.51 MB / 457.6 MB, free: 5.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.4071, allocations: 75.53 kB / 457.7 MB, free: 5.871 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06326/0.4703, allocations: 23.16 MB / 480.9 MB, free: 8 kB / 346.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.4704, allocations: 0 / 480.9 MB, free: 8 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.031e-05/0.4704, allocations: 16.05 kB / 480.9 MB, free: 15.99 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.002688/0.4731, allocations: 1.271 MB / 482.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.4732, allocations: 8.031 kB / 482.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001998/0.4734, allocations: 152 kB / 482.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004695/0.4739, allocations: 138.6 kB / 482.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007671/0.4746, allocations: 0.5451 MB / 483 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003005/0.475, allocations: 195.1 kB / 483.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/0.4751, allocations: 107.9 kB / 483.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/0.477, allocations: 1.15 MB / 484.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.047e-05/0.4771, allocations: 7.906 kB / 484.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.4772, allocations: 40 kB / 484.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.4772, allocations: 24 kB / 484.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.4791, allocations: 1.132 MB / 485.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006358/0.4855, allocations: 3.696 MB / 489.3 MB, free: 7.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.487, allocations: 0.9291 MB / 490.3 MB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008982/0.4879, allocations: 0.5984 MB / 490.9 MB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.488, allocations: 17.3 kB / 490.9 MB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.488, allocations: 51.81 kB / 490.9 MB, free: 5.617 MB / 362.7 MB Notification: Performance of pre-optimization done (n=135): time 3.356e-06/0.488, allocations: 3.938 kB / 490.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.006711/0.4948, allocations: 3.733 MB / 494.7 MB, free: 1.812 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.4948, allocations: 94.42 kB / 494.8 MB, free: 1.703 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005095/0.4954, allocations: 444.6 kB / 495.2 MB, free: 1.266 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.4955, allocations: 65.7 kB / 495.3 MB, free: 1.195 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.4957, allocations: 321.5 kB / 495.6 MB, free: 0.875 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003981/0.4961, allocations: 493.1 kB / 496.1 MB, free: 396 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.793e-05/0.4962, allocations: 31.92 kB / 496.1 MB, free: 364 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.4964, allocations: 390.8 kB / 496.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008798/0.4973, allocations: 0.5234 MB / 497 MB, free: 15.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009775/0.4983, allocations: 0.6453 MB / 497.6 MB, free: 14.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007753/0.4991, allocations: 465.8 kB / 498.1 MB, free: 14.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4991, allocations: 0 / 498.1 MB, free: 14.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002883/0.502, allocations: 1.646 MB / 499.7 MB, free: 12.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.502, allocations: 11.94 kB / 499.7 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/0.502, allocations: 4 kB / 499.8 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.5036, allocations: 0.7824 MB / 0.4888 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009581/0.5046, allocations: 259.6 kB / 0.489 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002079/0.5067, allocations: 1.876 MB / 0.4909 GB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.5078, allocations: 207.9 kB / 0.4911 GB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.508, allocations: 59.98 kB / 0.4911 GB, free: 9.41 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 () * 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.0003002/0.5083, allocations: 195.7 kB / 0.4913 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.5085, allocations: 86.97 kB / 0.4914 GB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003048/0.5115, allocations: 1.781 MB / 0.4931 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.5116, allocations: 12 kB / 0.4932 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.5116, allocations: 3.953 kB / 0.4932 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5116, allocations: 7.969 kB / 0.4932 GB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004988/0.5166, allocations: 3.033 MB / 0.4961 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.5166, allocations: 0 / 0.4961 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.5177, allocations: 259.8 kB / 0.4964 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001492/0.5192, allocations: 0.7391 MB / 0.4971 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.5194, allocations: 55.89 kB / 0.4972 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002151/0.5215, allocations: 1.816 MB / 0.4989 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.5215, allocations: 0 / 0.4989 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003659/0.5252, allocations: 2.243 MB / 0.5011 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005919/0.5258, allocations: 303.8 kB / 0.5014 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.526, allocations: 40 kB / 0.5014 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.5271, allocations: 211.8 kB / 0.5016 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004091/0.5275, allocations: 232.8 kB / 0.5019 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.5276, allocations: 63.94 kB / 0.5019 GB, free: 14.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004214/0.528, allocations: 357.5 kB / 0.5023 GB, free: 13.74 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5281, allocations: 0 / 0.5023 GB, free: 13.74 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008728/0.5289, allocations: 324 kB / 0.5026 GB, free: 13.42 MB / 394.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) * 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.004196/0.5331, allocations: 3.161 MB / 0.5057 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.5357, allocations: 1.413 MB / 0.507 GB, free: 8.773 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5357, allocations: 4 kB / 0.5071 GB, free: 8.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.5371, allocations: 0.7742 MB / 0.5078 GB, free: 7.996 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009361/0.538, allocations: 138.8 kB / 0.5079 GB, free: 7.859 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/0.5466, allocations: 3.139 MB / 0.511 GB, free: 4.668 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/0.5472, allocations: 1.043 MB / 0.512 GB, free: 3.598 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005839/0.5478, allocations: 143.2 kB / 0.5122 GB, free: 3.453 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005414/0.5484, allocations: 343.3 kB / 0.5125 GB, free: 3.117 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5484, allocations: 0 / 0.5125 GB, free: 3.117 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2255/0.7739, allocations: 26.48 MB / 0.5383 GB, free: 126.7 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/0.7741, allocations: 176.8 kB / 0.5385 GB, free: 126.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.614/3.388, allocations: 7.938 kB / 0.5385 GB, free: 126.5 MB / 410.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