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"}) [: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 3.2.3+maint.om/package.mo): time 0.001726/0.001726, allocations: 176 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009133/0.0009133, allocations: 78.33 kB / 262.1 MB, free: 5.156 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1619/0.1628, allocations: 52.98 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06463/0.2275, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2292/0.4567, allocations: 86.79 MB / 449.4 MB, free: 9.891 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.4569, allocations: 66.06 kB / 449.5 MB, free: 9.883 MB / 314.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.06716/0.5241, allocations: 24.14 MB / 473.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.5242, allocations: 8 kB / 473.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009636/0.5251, allocations: 134.6 kB / 473.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.5266, allocations: 0.5426 MB / 474.3 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003954/0.527, allocations: 174.8 kB / 474.5 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002579/0.5273, allocations: 63.89 kB / 474.5 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002272/0.5296, allocations: 1.095 MB / 475.6 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/0.5315, allocations: 1.02 MB / 476.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.291e-05/0.5316, allocations: 11.47 kB / 476.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.5317, allocations: 0 / 476.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.5317, allocations: 24 kB / 476.7 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008442/0.5402, allocations: 3.587 MB / 480.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.5416, allocations: 0.6924 MB / 481 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009369/0.5426, allocations: 0.5573 MB / 481.5 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/0.5427, allocations: 24.56 kB / 481.5 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.5428, allocations: 47.62 kB / 481.6 MB, free: 9.523 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 5.901e-06/0.5428, allocations: 4 kB / 481.6 MB, free: 9.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=147): time 0.008674/0.5515, allocations: 3.49 MB / 485.1 MB, free: 6.766 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.5516, allocations: 90.42 kB / 485.2 MB, free: 6.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006507/0.5522, allocations: 411.4 kB / 485.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.5524, allocations: 40.89 kB / 485.6 MB, free: 6.301 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002273/0.5526, allocations: 262.5 kB / 485.9 MB, free: 6.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004727/0.5531, allocations: 482.9 kB / 486.3 MB, free: 5.652 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.669e-05/0.5532, allocations: 0 / 486.3 MB, free: 5.652 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.5534, allocations: 393.2 kB / 486.7 MB, free: 5.293 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009054/0.5543, allocations: 0.4947 MB / 487.2 MB, free: 5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009642/0.5553, allocations: 0.6219 MB / 487.8 MB, free: 4.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.5564, allocations: 453.8 kB / 488.3 MB, free: 4.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.5564, allocations: 0 / 488.3 MB, free: 4.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00338/0.5598, allocations: 1.561 MB / 489.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.5599, allocations: 9.875 kB / 489.9 MB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.979e-05/0.5599, allocations: 7.984 kB / 489.9 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001741/0.5617, allocations: 0.7508 MB / 490.6 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.5629, allocations: 263.5 kB / 490.9 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002931/0.5658, allocations: 2.035 MB / 492.9 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.5674, allocations: 211.8 kB / 493.1 MB, free: 136 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002431/0.5676, allocations: 63.91 kB / 493.2 MB, free: 72 kB / 330.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.0005166/0.5681, allocations: 143.6 kB / 493.3 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00038/0.5685, allocations: 90.88 kB / 493.4 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003674/0.5722, allocations: 1.688 MB / 495.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.5722, allocations: 16 kB / 495.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.5723, allocations: 0 / 495.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.5723, allocations: 7.969 kB / 495.1 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006138/0.5784, allocations: 2.819 MB / 497.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.5785, allocations: 3.938 kB / 497.9 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/0.5799, allocations: 279.7 kB / 498.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001715/0.5817, allocations: 0.7272 MB / 498.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001943/0.5819, allocations: 31.94 kB / 499 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002729/0.5846, allocations: 1.951 MB / 0.4892 GB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.5847, allocations: 4 kB / 0.4892 GB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004169/0.5888, allocations: 2.178 MB / 0.4913 GB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005426/0.5943, allocations: 3.216 MB / 0.4945 GB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008318/0.5952, allocations: 295.8 kB / 0.4947 GB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003523/0.5955, allocations: 16 kB / 0.4948 GB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.597, allocations: 223.8 kB / 0.495 GB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004825/0.5975, allocations: 220.8 kB / 0.4952 GB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.5977, allocations: 63.94 kB / 0.4952 GB, free: 1.859 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005361/0.5982, allocations: 326.9 kB / 0.4956 GB, free: 1.539 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002052/0.6003, allocations: 271.8 kB / 0.4958 GB, free: 1.273 MB / 346.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.0004263/0.6007, allocations: 177.1 kB / 0.496 GB, free: 1.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002644/0.6034, allocations: 1.348 MB / 0.4973 GB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.6034, allocations: 384 / 0.4973 GB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.6049, allocations: 0.7313 MB / 0.498 GB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000985/0.6059, allocations: 112.7 kB / 0.4981 GB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008586/0.6145, allocations: 2.835 MB / 0.5009 GB, free: 12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/0.6157, allocations: 1.171 MB / 0.502 GB, free: 10.8 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6157, allocations: 0 / 0.502 GB, free: 10.8 MB / 362.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)