Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001655/0.001655, allocations: 182.1 kB / 8.134 MB, free: 2.215 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.101/1.101, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008304/0.0008304, allocations: 92.5 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1007/0.1015, allocations: 55.81 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.2803, allocations: 50.4 MB / 387 MB, free: 37.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07815/0.3585, allocations: 80.37 MB / 467.4 MB, free: 6.391 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001948/0.3587, allocations: 65.56 kB / 467.4 MB, free: 6.328 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.02562/0.3843, allocations: 9.709 MB / 477.1 MB, free: 12.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.3844, allocations: 8 kB / 477.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002841/0.3847, allocations: 47.61 kB / 477.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.385, allocations: 286.4 kB / 477.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.942e-05/0.3851, allocations: 84.05 kB / 477.6 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.3852, allocations: 16 kB / 477.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005616/0.3858, allocations: 361.1 kB / 477.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.3862, allocations: 317.4 kB / 478.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.3862, allocations: 11.89 kB / 478.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.3863, allocations: 0 / 478.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.3863, allocations: 4 kB / 478.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.3879, allocations: 1.105 MB / 479.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.3883, allocations: 251.8 kB / 479.6 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002314/0.3885, allocations: 156.4 kB / 479.8 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.3886, allocations: 4 kB / 479.8 MB, free: 9.836 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.3886, allocations: 43.38 kB / 479.8 MB, free: 9.785 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.462e-06/0.3886, allocations: 0.8438 kB / 479.8 MB, free: 9.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.002275/0.3909, allocations: 1.237 MB / 481 MB, free: 8.453 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.391, allocations: 84.86 kB / 481.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.3911, allocations: 189.3 kB / 481.3 MB, free: 8.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.3912, allocations: 33.7 kB / 481.3 MB, free: 8.121 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.203e-05/0.3912, allocations: 120.8 kB / 481.5 MB, free: 7.996 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.525e-05/0.3913, allocations: 141.8 kB / 481.6 MB, free: 7.855 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.096e-05/0.3914, allocations: 0 / 481.6 MB, free: 7.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3915, allocations: 342.8 kB / 481.9 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.3917, allocations: 138.8 kB / 482.1 MB, free: 7.379 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.392, allocations: 189.1 kB / 482.3 MB, free: 7.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.3922, allocations: 140.7 kB / 482.4 MB, free: 7.039 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.3923, allocations: 4.031 kB / 482.4 MB, free: 7.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008162/0.3931, allocations: 479.7 kB / 482.9 MB, free: 6.559 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.3931, allocations: 8 kB / 482.9 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.3931, allocations: 0 / 482.9 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000645/0.3938, allocations: 240.7 kB / 483.1 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.394, allocations: 63.81 kB / 483.2 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/0.397, allocations: 2.389 MB / 485.6 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.3973, allocations: 23.97 kB / 485.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.006e-05/0.3974, allocations: 20 kB / 485.6 MB, free: 3.703 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: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.3975, allocations: 117 kB / 485.7 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.3976, allocations: 27.62 kB / 485.7 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.262e-05/0.3977, allocations: 34.78 kB / 485.8 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3977, allocations: 4 kB / 485.8 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.3977, allocations: 0 / 485.8 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.3977, allocations: 7.984 kB / 485.8 MB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.3992, allocations: 0.9474 MB / 486.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3992, allocations: 0 / 486.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002524/0.3994, allocations: 44.72 kB / 486.8 MB, free: 2.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006072/0.4001, allocations: 229.2 kB / 487 MB, free: 2.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.4001, allocations: 11.98 kB / 487 MB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002833/0.4029, allocations: 2.331 MB / 489.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.403, allocations: 8.062 kB / 489.4 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001023/0.404, allocations: 0.72 MB / 490.1 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001363/0.4054, allocations: 1.271 MB / 491.3 MB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.4055, allocations: 140.9 kB / 491.5 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.4056, allocations: 9.016 kB / 491.5 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002837/0.4059, allocations: 27.98 kB / 491.5 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.406, allocations: 39.91 kB / 491.6 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.4061, allocations: 19.98 kB / 491.6 MB, free: 13.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001202/0.4062, allocations: 148.3 kB / 491.7 MB, free: 13.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001139/0.4073, allocations: 120 kB / 491.8 MB, free: 13.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002171/0.4075, allocations: 139.1 kB / 492 MB, free: 13.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007793/0.4083, allocations: 0.4912 MB / 492.5 MB, free: 12.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4084, allocations: 0 / 492.5 MB, free: 12.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004624/0.4088, allocations: 328.7 kB / 492.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.4091, allocations: 16.17 kB / 492.8 MB, free: 12.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.4101, allocations: 0.515 MB / 493.3 MB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004488/0.4106, allocations: 0.8149 MB / 494.1 MB, free: 10.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4106, allocations: 0 / 494.1 MB, free: 10.86 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)