Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009825/0.0009826, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009152/0.0009154, allocations: 86.28 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.617e-05/1.619e-05, allocations: 0 / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 50.42 MB / 387.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4144/0.538, allocations: 88.19 MB / 475.7 MB, free: 6.535 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.5382, allocations: 71.97 kB / 475.8 MB, free: 6.465 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06657/0.6048, allocations: 23.22 MB / 499 MB, free: 15.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.6048, allocations: 3.938 kB / 499 MB, free: 15.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.005e-05/0.6049, allocations: 20 kB / 499.1 MB, free: 15.16 MB / 378.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.002882/0.6078, allocations: 1.267 MB / 0.4886 GB, free: 13.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.6078, allocations: 12.03 kB / 0.4886 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005141/0.6084, allocations: 134.6 kB / 0.4887 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008801/0.6092, allocations: 0.5335 MB / 0.4893 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003251/0.6096, allocations: 167.1 kB / 0.4894 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.6098, allocations: 59.91 kB / 0.4895 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00196/0.6117, allocations: 1.101 MB / 0.4906 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.6135, allocations: 1.017 MB / 0.4916 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.439e-05/0.6136, allocations: 11.91 kB / 0.4916 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.6137, allocations: 0 / 0.4916 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.6137, allocations: 24 kB / 0.4916 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006894/0.6206, allocations: 3.541 MB / 0.495 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.6222, allocations: 0.8861 MB / 0.4959 GB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008548/0.6231, allocations: 0.5553 MB / 0.4965 GB, free: 5.566 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.6232, allocations: 21.3 kB / 0.4965 GB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.6232, allocations: 51.88 kB / 0.4965 GB, free: 5.488 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 4.929e-06/0.6233, allocations: 0 / 0.4965 GB, free: 5.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.007991/0.6312, allocations: 3.516 MB / 0.5 GB, free: 1.902 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/0.6314, allocations: 90.42 kB / 0.5 GB, free: 1.797 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006138/0.632, allocations: 413.2 kB / 0.5004 GB, free: 1.391 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/0.6322, allocations: 41.69 kB / 0.5005 GB, free: 1.344 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003145/0.6325, allocations: 317.6 kB / 0.5008 GB, free: 1.027 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004866/0.633, allocations: 485 kB / 0.5012 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.18e-05/0.6331, allocations: 7.938 kB / 0.5012 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002688/0.6334, allocations: 398.7 kB / 0.5016 GB, free: 144 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009114/0.6343, allocations: 0.4921 MB / 0.5021 GB, free: 15.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.6353, allocations: 0.6062 MB / 0.5027 GB, free: 15.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.6365, allocations: 462.4 kB / 0.5031 GB, free: 14.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6365, allocations: 3.938 kB / 0.5031 GB, free: 14.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003064/0.6396, allocations: 1.549 MB / 0.5047 GB, free: 13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.6396, allocations: 4 kB / 0.5047 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/0.6397, allocations: 4 kB / 0.5047 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.6413, allocations: 0.7784 MB / 0.5054 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.6424, allocations: 255.6 kB / 0.5057 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/0.645, allocations: 2.005 MB / 0.5076 GB, free: 9.902 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.6463, allocations: 179.9 kB / 0.5078 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.6465, allocations: 63.97 kB / 0.5079 GB, free: 9.664 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0004331/0.6469, allocations: 152.7 kB / 0.508 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002969/0.6499, allocations: 1.372 MB / 0.5093 GB, free: 8.129 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.6501, allocations: 90.92 kB / 0.5094 GB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003103/0.6532, allocations: 1.664 MB / 0.5111 GB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.6533, allocations: 16 kB / 0.5111 GB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6533, allocations: 4 kB / 0.5111 GB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.6533, allocations: 7.969 kB / 0.5111 GB, free: 6.312 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005303/0.6586, allocations: 2.831 MB / 0.5138 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.6587, allocations: 4 kB / 0.5139 GB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.6598, allocations: 259.8 kB / 0.5141 GB, free: 3.152 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.6614, allocations: 0.7273 MB / 0.5148 GB, free: 2.418 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001203/0.6616, allocations: 43.86 kB / 0.5149 GB, free: 2.375 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.6641, allocations: 1.905 MB / 0.5167 GB, free: 424 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.6641, allocations: 0 / 0.5167 GB, free: 424 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003717/0.6678, allocations: 2.165 MB / 0.5188 GB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006154/0.6684, allocations: 299.8 kB / 0.5191 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.6687, allocations: 16 kB / 0.5191 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.6698, allocations: 191.8 kB / 0.5193 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004171/0.6702, allocations: 232.8 kB / 0.5195 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.6704, allocations: 63.94 kB / 0.5196 GB, free: 13.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004212/0.6708, allocations: 322.9 kB / 0.5199 GB, free: 13.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6708, allocations: 0 / 0.5199 GB, free: 13.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009838/0.6718, allocations: 268 kB / 0.5202 GB, free: 12.81 MB / 410.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.004424/0.6762, allocations: 3.034 MB / 0.5231 GB, free: 9.719 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.6787, allocations: 1.346 MB / 0.5244 GB, free: 8.348 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.6787, allocations: 4 kB / 0.5244 GB, free: 8.344 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.6801, allocations: 0.7381 MB / 0.5252 GB, free: 7.605 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.6811, allocations: 118 kB / 0.5253 GB, free: 7.496 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008868/0.69, allocations: 3.021 MB / 0.5282 GB, free: 4.418 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006213/0.6906, allocations: 1.047 MB / 0.5292 GB, free: 3.344 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006109/0.6913, allocations: 135.1 kB / 0.5294 GB, free: 3.207 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005483/0.6918, allocations: 347.3 kB / 0.5297 GB, free: 2.867 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6918, allocations: 3.938 kB / 0.5297 GB, free: 2.863 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.275/0.9668, allocations: 25.34 MB / 0.5545 GB, free: 130.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/0.9671, allocations: 142.4 kB / 0.5546 GB, free: 130.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.76/3.727, allocations: 0 / 0.5546 GB, free: 130.4 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat