Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009965/0.0009966, allocations: 98.23 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1089/0.1099, allocations: 56.9 MB / 343.2 MB, free: 8.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09049/0.2004, allocations: 51.47 MB / 394.7 MB, free: 4.973 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.214/0.4145, allocations: 91.19 MB / 485.9 MB, free: 2.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.4147, allocations: 69.16 kB / 486 MB, free: 2.207 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.09812/0.5128, allocations: 35.27 MB / 0.509 GB, free: 4.082 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.5129, allocations: 8 kB / 0.509 GB, free: 4.074 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008098/0.5137, allocations: 174.5 kB / 0.5092 GB, free: 3.902 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.5148, allocations: 0.5802 MB / 0.5098 GB, free: 3.281 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003504/0.5152, allocations: 171.1 kB / 0.5099 GB, free: 3.098 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/0.5154, allocations: 63.91 kB / 0.51 GB, free: 3.035 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002327/0.5178, allocations: 1.125 MB / 0.5111 GB, free: 1.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.5198, allocations: 1.029 MB / 0.5121 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-05/0.5199, allocations: 11.91 kB / 0.5121 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.52, allocations: 0 / 0.5121 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.5201, allocations: 31.98 kB / 0.5121 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007325/0.5274, allocations: 3.685 MB / 0.5157 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.5287, allocations: 0.6968 MB / 0.5164 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008727/0.5296, allocations: 0.5527 MB / 0.5169 GB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.27e-05/0.5297, allocations: 21.3 kB / 0.517 GB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.5298, allocations: 47.88 kB / 0.517 GB, free: 11.67 MB / 394.7 MB Notification: Performance of pre-optimization done (n=136): time 2.755e-06/0.5298, allocations: 4 kB / 0.517 GB, free: 11.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=148): time 0.006981/0.5368, allocations: 3.352 MB / 0.5203 GB, free: 8.246 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.5368, allocations: 94.42 kB / 0.5204 GB, free: 8.133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006803/0.5375, allocations: 0.4904 MB / 0.5209 GB, free: 7.637 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.5376, allocations: 45.69 kB / 0.5209 GB, free: 7.586 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.5379, allocations: 273.5 kB / 0.5212 GB, free: 7.312 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004072/0.5383, allocations: 481 kB / 0.5216 GB, free: 6.836 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.63e-05/0.5384, allocations: 4 kB / 0.5216 GB, free: 6.832 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.5386, allocations: 398.7 kB / 0.522 GB, free: 6.434 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009406/0.5395, allocations: 0.4921 MB / 0.5225 GB, free: 5.941 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.5405, allocations: 0.614 MB / 0.5231 GB, free: 5.301 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000849/0.5414, allocations: 433.8 kB / 0.5235 GB, free: 4.883 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.5414, allocations: 3 kB / 0.5235 GB, free: 4.883 MB / 394.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003074/0.5445, allocations: 1.538 MB / 0.525 GB, free: 3.336 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.5445, allocations: 4 kB / 0.525 GB, free: 3.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5445, allocations: 4 kB / 0.525 GB, free: 3.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/0.5463, allocations: 0.703 MB / 0.5257 GB, free: 2.617 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.5475, allocations: 279.6 kB / 0.526 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002557/0.5501, allocations: 2.063 MB / 0.528 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.5514, allocations: 207.6 kB / 0.5282 GB, free: 20 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.5515, allocations: 55.97 kB / 0.5282 GB, free: 15.96 MB / 410.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 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * 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 45,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002974/0.5518, allocations: 146.3 kB / 0.5284 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.552, allocations: 90.88 kB / 0.5285 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.5523, allocations: 117.8 kB / 0.5286 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.5523, allocations: 19.91 kB / 0.5286 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.5523, allocations: 0 / 0.5286 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.5523, allocations: 7.969 kB / 0.5286 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005201/0.5575, allocations: 2.934 MB / 0.5315 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.5576, allocations: 0 / 0.5315 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001326/0.5589, allocations: 275.7 kB / 0.5317 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001619/0.5605, allocations: 0.66 MB / 0.5324 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001369/0.5607, allocations: 43.84 kB / 0.5324 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/0.5631, allocations: 1.985 MB / 0.5343 GB, free: 9.574 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5631, allocations: 96 / 0.5343 GB, free: 9.574 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00376/0.5669, allocations: 2.153 MB / 0.5364 GB, free: 7.387 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00492/0.5718, allocations: 3.198 MB / 0.5396 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005951/0.5725, allocations: 331.6 kB / 0.5399 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.5727, allocations: 19.94 kB / 0.5399 GB, free: 3.777 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.574, allocations: 223.7 kB / 0.5401 GB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004632/0.5745, allocations: 228.8 kB / 0.5403 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.5746, allocations: 55.95 kB / 0.5404 GB, free: 3.281 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004704/0.5751, allocations: 382.9 kB / 0.5408 GB, free: 2.906 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001525/0.5766, allocations: 291.9 kB / 0.541 GB, free: 2.621 MB / 410.7 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,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 93 * 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 7,4 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007231/0.5774, allocations: 323.6 kB / 0.5413 GB, free: 2.387 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.5796, allocations: 1.257 MB / 0.5426 GB, free: 1.133 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5797, allocations: 0 / 0.5426 GB, free: 1.133 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.581, allocations: 0.7223 MB / 0.5433 GB, free: 424 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008654/0.5819, allocations: 122 kB / 0.5434 GB, free: 304 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007761/0.5897, allocations: 2.887 MB / 0.5462 GB, free: 13.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/0.5907, allocations: 1.198 MB / 0.5474 GB, free: 12.14 MB / 426.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5907, allocations: 0 / 0.5474 GB, free: 12.14 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat