Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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 4.0.0+maint.om/package.mo): time 0.0008875/0.0008876, allocations: 182 kB / 8.129 MB, free: 2.219 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.057/1.057, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008552/0.0008552, allocations: 97.33 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08564/0.08652, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.2532, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07644/0.3297, allocations: 80.56 MB / 467.6 MB, free: 6.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001686/0.3299, allocations: 75.89 kB / 467.6 MB, free: 6.156 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.01898/0.3489, allocations: 7.251 MB / 474.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.3489, allocations: 8 kB / 474.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.76e-05/0.349, allocations: 47.44 kB / 474.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.3494, allocations: 291 kB / 475.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.3494, allocations: 12 kB / 475.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.3495, allocations: 27.91 kB / 475.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006144/0.3501, allocations: 353.4 kB / 475.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005644/0.3507, allocations: 346 kB / 475.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.3507, allocations: 0 / 475.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.3508, allocations: 3.938 kB / 475.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.3508, allocations: 8 kB / 476 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.3532, allocations: 1.245 MB / 477.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004141/0.3537, allocations: 257.7 kB / 477.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002866/0.354, allocations: 198.1 kB / 477.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.354, allocations: 8.438 kB / 477.7 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.789e-05/0.3541, allocations: 36.06 kB / 477.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 2.054e-06/0.3541, allocations: 4 kB / 477.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.003289/0.3574, allocations: 1.503 MB / 479.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.3574, allocations: 59.84 kB / 479.3 MB, free: 10.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.3576, allocations: 180.3 kB / 479.4 MB, free: 10.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3576, allocations: 35.67 kB / 479.5 MB, free: 10.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.092e-05/0.3577, allocations: 148.7 kB / 479.6 MB, free: 9.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.3579, allocations: 173.6 kB / 479.8 MB, free: 9.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.3579, allocations: 4 kB / 479.8 MB, free: 9.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.358, allocations: 334.8 kB / 480.1 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.3583, allocations: 185.3 kB / 480.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.3587, allocations: 238.9 kB / 480.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.3591, allocations: 153.4 kB / 480.7 MB, free: 8.816 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3591, allocations: 0 / 480.7 MB, free: 8.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001481/0.3606, allocations: 0.6585 MB / 481.3 MB, free: 8.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.3606, allocations: 4 kB / 481.3 MB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.3606, allocations: 7.984 kB / 481.3 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008492/0.3615, allocations: 422.4 kB / 481.8 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002766/0.3617, allocations: 75.89 kB / 481.8 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/0.3643, allocations: 3.35 MB / 485.2 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000526/0.3649, allocations: 108 kB / 485.3 MB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.986e-05/0.365, allocations: 24 kB / 485.3 MB, free: 3.902 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001764/0.3651, allocations: 129.4 kB / 485.4 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.557e-05/0.3652, allocations: 31.62 kB / 485.5 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.3667, allocations: 0.6668 MB / 486.1 MB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.3667, allocations: 8 kB / 486.1 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3667, allocations: 0.75 kB / 486.1 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3667, allocations: 3.984 kB / 486.1 MB, free: 3.039 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.3684, allocations: 1.084 MB / 487.2 MB, free: 1.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3684, allocations: 0 / 487.2 MB, free: 1.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/0.3687, allocations: 55.97 kB / 487.3 MB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008022/0.3695, allocations: 418.1 kB / 487.7 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.3696, allocations: 11.97 kB / 487.7 MB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00238/0.372, allocations: 3.321 MB / 491 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.372, allocations: 9.125 kB / 491 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001363/0.3734, allocations: 0.8557 MB / 491.9 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002438/0.3758, allocations: 1.939 MB / 493.8 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.376, allocations: 156.6 kB / 494 MB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.512e-05/0.3761, allocations: 11.98 kB / 494 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000518/0.3766, allocations: 103.9 kB / 494.1 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.3768, allocations: 100.5 kB / 494.2 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.347e-05/0.3769, allocations: 23.97 kB / 494.2 MB, free: 10.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001141/0.377, allocations: 149.2 kB / 494.4 MB, free: 10.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00104/0.378, allocations: 112 kB / 494.5 MB, free: 10.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002094/0.3782, allocations: 148.4 kB / 494.6 MB, free: 10.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.3793, allocations: 0.7309 MB / 495.4 MB, free: 9.406 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3793, allocations: 0 / 495.4 MB, free: 9.406 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006292/0.38, allocations: 467.6 kB / 495.8 MB, free: 8.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.3804, allocations: 40.38 kB / 495.8 MB, free: 8.891 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.3821, allocations: 0.7791 MB / 496.6 MB, free: 8.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.3824, allocations: 0.841 MB / 497.5 MB, free: 7.227 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3825, allocations: 0 / 497.5 MB, free: 7.227 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)