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.002333/0.002333, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.95/1.95, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00116/0.00116, allocations: 85.8 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003837, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3291, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.143/0.4722, allocations: 87.63 MB / 462.3 MB, free: 9.129 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/0.4725, allocations: 75.97 kB / 462.3 MB, free: 9.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1144/0.587, allocations: 23.18 MB / 485.5 MB, free: 1.812 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.998e-06/0.587, allocations: 0 / 485.5 MB, free: 1.812 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.468e-05/0.5871, allocations: 24 kB / 485.5 MB, free: 1.789 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.005763/0.5929, allocations: 1.352 MB / 486.9 MB, free: 392 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.531e-05/0.593, allocations: 8.031 kB / 486.9 MB, free: 384 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007228/0.5937, allocations: 148 kB / 487 MB, free: 228 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008497/0.5946, allocations: 138.6 kB / 487.2 MB, free: 88 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.5964, allocations: 0.5451 MB / 487.7 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005825/0.597, allocations: 199 kB / 487.9 MB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004824/0.5975, allocations: 103.9 kB / 488 MB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00447/0.602, allocations: 1.224 MB / 489.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-05/0.6021, allocations: 11.91 kB / 489.2 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.6023, allocations: 36 kB / 489.3 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.612e-05/0.6024, allocations: 24 kB / 489.3 MB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005488/0.6079, allocations: 1.292 MB / 490.6 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01273/0.6207, allocations: 3.696 MB / 494.3 MB, free: 8.715 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003853/0.6246, allocations: 1.025 MB / 495.3 MB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/0.6249, allocations: 21.3 kB / 495.3 MB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.6249, allocations: 43.88 kB / 495.4 MB, free: 7.613 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 4.268e-06/0.6249, allocations: 0 / 495.4 MB, free: 7.613 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.02649/0.6514, allocations: 5.778 MB / 0.4894 GB, free: 1.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.6516, allocations: 94.41 kB / 0.4895 GB, free: 1.566 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009933/0.6526, allocations: 450 kB / 0.4899 GB, free: 1.121 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003589/0.653, allocations: 65.69 kB / 0.49 GB, free: 1.051 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003505/0.6533, allocations: 352 kB / 0.4903 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000711/0.6541, allocations: 0.4892 MB / 0.4908 GB, free: 212 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/0.6543, allocations: 39.92 kB / 0.4909 GB, free: 172 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.2774/0.9317, allocations: 362.8 kB / 0.4912 GB, free: 103.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002809/0.9346, allocations: 0.5367 MB / 0.4917 GB, free: 103.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002702/0.9373, allocations: 0.6663 MB / 0.4924 GB, free: 103.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004447/0.9418, allocations: 493.4 kB / 0.4928 GB, free: 103 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-05/0.9419, allocations: 0 / 0.4928 GB, free: 103 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.0128/0.9547, allocations: 1.671 MB / 0.4945 GB, free: 102.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.065e-05/0.9548, allocations: 4.875 kB / 0.4945 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.999e-05/0.9549, allocations: 10.09 kB / 0.4945 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006325/0.9613, allocations: 0.8111 MB / 0.4953 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/0.9648, allocations: 254.2 kB / 0.4955 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005155/0.9701, allocations: 1.877 MB / 0.4974 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004054/0.9742, allocations: 207.6 kB / 0.4976 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007079/0.9749, allocations: 61.14 kB / 0.4976 GB, free: 101.9 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.001436/0.9764, allocations: 268.3 kB / 0.4979 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005732/0.977, allocations: 93.5 kB / 0.498 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01391/0.991, allocations: 1.921 MB / 0.4998 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-05/0.9911, allocations: 14.72 kB / 0.4998 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.9911, allocations: 0 / 0.4998 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.952e-05/0.9912, allocations: 6.422 kB / 0.4999 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01443/1.006, allocations: 3.184 MB / 0.503 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/1.006, allocations: 0 / 0.503 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002193/1.008, allocations: 267.6 kB / 0.5032 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002573/1.011, allocations: 0.7616 MB / 0.504 GB, free: 99.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002565/1.011, allocations: 53.84 kB / 0.504 GB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003153/1.014, allocations: 1.819 MB / 0.5058 GB, free: 98.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.014, allocations: 0 / 0.5058 GB, free: 98.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008066/1.022, allocations: 2.497 MB / 0.5082 GB, free: 97.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008097/1.023, allocations: 293.9 kB / 0.5085 GB, free: 97.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/1.023, allocations: 39.31 kB / 0.5085 GB, free: 97.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002074/1.025, allocations: 212.2 kB / 0.5087 GB, free: 97.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006771/1.026, allocations: 232.9 kB / 0.509 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/1.026, allocations: 61.88 kB / 0.509 GB, free: 97.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006418/1.027, allocations: 362.5 kB / 0.5094 GB, free: 97.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.027, allocations: 0 / 0.5094 GB, free: 97.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001235/1.028, allocations: 322.9 kB / 0.5097 GB, free: 97.11 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.008478/1.037, allocations: 3.401 MB / 0.513 GB, free: 95.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004944/1.042, allocations: 1.542 MB / 0.5145 GB, free: 94.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/1.042, allocations: 0 / 0.5145 GB, free: 94.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002917/1.045, allocations: 0.838 MB / 0.5153 GB, free: 94.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/1.046, allocations: 135.1 kB / 0.5155 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02576/1.072, allocations: 8.62 MB / 0.5239 GB, free: 87.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/1.073, allocations: 1.049 MB / 0.5249 GB, free: 86.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009769/1.074, allocations: 354.5 kB / 0.5252 GB, free: 86.63 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/1.074, allocations: 4 kB / 0.5252 GB, free: 86.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.24/4.313, allocations: 22.52 MB / 0.5472 GB, free: 65.48 MB / 378.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat