Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001109/0.001109, allocations: 184 kB / 8.138 MB, free: 2.223 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.059/1.059, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008598/0.0008598, allocations: 103.2 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09018/0.09107, allocations: 55.81 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1771/0.2682, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08128/0.3495, allocations: 81.08 MB / 468.1 MB, free: 5.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001786/0.3498, allocations: 71.95 kB / 468.1 MB, free: 5.625 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.02853/0.3783, allocations: 10.54 MB / 478.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3784, allocations: 8 kB / 478.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003159/0.3787, allocations: 63.44 kB / 478.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.3791, allocations: 286.6 kB / 479 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.3792, allocations: 80.05 kB / 479.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-05/0.3793, allocations: 20 kB / 479.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000649/0.3799, allocations: 412.9 kB / 479.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005152/0.3805, allocations: 335.7 kB / 479.9 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.3805, allocations: 4 kB / 479.9 MB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.3805, allocations: 3.984 kB / 479.9 MB, free: 9.805 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.3805, allocations: 8 kB / 479.9 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.3818, allocations: 0.8206 MB / 480.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.3822, allocations: 292.5 kB / 481 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002638/0.3825, allocations: 183.3 kB / 481.2 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/0.3825, allocations: 12.38 kB / 481.2 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.3826, allocations: 39 kB / 481.2 MB, free: 8.395 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/0.3826, allocations: 0 / 481.2 MB, free: 8.395 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.002644/0.3852, allocations: 1.414 MB / 482.6 MB, free: 6.891 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.3853, allocations: 89.55 kB / 482.7 MB, free: 6.785 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.3855, allocations: 186.2 kB / 482.9 MB, free: 6.594 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.3855, allocations: 33.7 kB / 482.9 MB, free: 6.555 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.398e-05/0.3856, allocations: 121.7 kB / 483.1 MB, free: 6.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.3857, allocations: 177.3 kB / 483.2 MB, free: 6.258 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.543e-05/0.3857, allocations: 4 kB / 483.2 MB, free: 6.254 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.62e-05/0.3858, allocations: 338.8 kB / 483.6 MB, free: 5.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.3861, allocations: 153 kB / 483.7 MB, free: 5.766 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.3864, allocations: 203 kB / 483.9 MB, free: 5.555 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003254/0.3867, allocations: 157.4 kB / 484.1 MB, free: 5.402 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.3867, allocations: 0.75 kB / 484.1 MB, free: 5.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008605/0.3876, allocations: 0.5173 MB / 484.6 MB, free: 4.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.3876, allocations: 8.031 kB / 484.6 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3876, allocations: 0 / 484.6 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006701/0.3883, allocations: 234.8 kB / 484.8 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.3886, allocations: 71.89 kB / 484.9 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002966/0.3916, allocations: 2.434 MB / 487.3 MB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.3919, allocations: 32.03 kB / 487.4 MB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.726e-05/0.392, allocations: 24.92 kB / 487.4 MB, free: 1.965 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001531/0.3922, allocations: 120.8 kB / 487.5 MB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.047e-05/0.3922, allocations: 31.62 kB / 487.5 MB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.787e-05/0.3923, allocations: 39.08 kB / 487.6 MB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3923, allocations: 8 kB / 487.6 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.3923, allocations: 0 / 487.6 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3924, allocations: 0 / 487.6 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.3942, allocations: 1.104 MB / 488.7 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3942, allocations: 0 / 488.7 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00036/0.3945, allocations: 79.86 kB / 488.8 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006106/0.3952, allocations: 228.6 kB / 489 MB, free: 312 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.3952, allocations: 8 kB / 489 MB, free: 304 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002831/0.3981, allocations: 2.343 MB / 491.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3981, allocations: 0 / 491.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001218/0.3993, allocations: 0.8318 MB / 492.2 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001601/0.4009, allocations: 1.433 MB / 493.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/0.4011, allocations: 152.7 kB / 493.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.363e-05/0.4012, allocations: 4 kB / 493.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003419/0.4015, allocations: 32.09 kB / 493.8 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.4016, allocations: 48.34 kB / 493.8 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.4017, allocations: 23.98 kB / 493.8 MB, free: 11.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001164/0.4018, allocations: 154.4 kB / 494 MB, free: 11.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001163/0.403, allocations: 131.9 kB / 494.1 MB, free: 10.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002531/0.4032, allocations: 139.1 kB / 494.3 MB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008821/0.4041, allocations: 0.5402 MB / 494.8 MB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4041, allocations: 0 / 494.8 MB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005303/0.4047, allocations: 362.4 kB / 495.2 MB, free: 9.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.405, allocations: 19.3 kB / 495.2 MB, free: 9.879 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.4062, allocations: 0.6163 MB / 495.8 MB, free: 9.246 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004764/0.4067, allocations: 0.8423 MB / 496.6 MB, free: 8.383 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4067, allocations: 0 / 496.6 MB, free: 8.383 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)