Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.0008943/0.0008943, allocations: 183.3 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.075/1.075, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008282/0.0008283, allocations: 97.55 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08913/0.08999, allocations: 55.82 MB / 336.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.2682, allocations: 50.38 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08068/0.3489, allocations: 82.56 MB / 469.6 MB, free: 4.223 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.3492, allocations: 75.39 kB / 469.6 MB, free: 4.152 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.03323/0.3824, allocations: 12.4 MB / 482 MB, free: 7.703 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3825, allocations: 12.66 kB / 482 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003674/0.3829, allocations: 63.41 kB / 482.1 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005035/0.3834, allocations: 341.4 kB / 482.4 MB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.3835, allocations: 80.17 kB / 482.5 MB, free: 7.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-05/0.3836, allocations: 28 kB / 482.5 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008847/0.3845, allocations: 0.5169 MB / 483.1 MB, free: 6.617 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007576/0.3853, allocations: 473.2 kB / 483.5 MB, free: 6.141 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.3853, allocations: 4.656 kB / 483.5 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.597e-05/0.3853, allocations: 0 / 483.5 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.3854, allocations: 8 kB / 483.5 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.3874, allocations: 1.078 MB / 484.6 MB, free: 5.008 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005169/0.3879, allocations: 375.5 kB / 485 MB, free: 4.633 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.3883, allocations: 279.2 kB / 485.2 MB, free: 4.363 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.223e-05/0.3883, allocations: 8.656 kB / 485.3 MB, free: 4.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.3884, allocations: 43.16 kB / 485.3 MB, free: 4.301 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 1.764e-06/0.3884, allocations: 0 / 485.3 MB, free: 4.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.00371/0.3921, allocations: 1.86 MB / 487.2 MB, free: 2.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.3922, allocations: 89.77 kB / 487.2 MB, free: 2.242 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.3924, allocations: 212.3 kB / 487.5 MB, free: 2.031 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.3924, allocations: 29.7 kB / 487.5 MB, free: 1.996 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.242e-05/0.3925, allocations: 145.5 kB / 487.6 MB, free: 1.848 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.3927, allocations: 224.7 kB / 487.8 MB, free: 1.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.3927, allocations: 3.938 kB / 487.8 MB, free: 1.621 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3929, allocations: 350.7 kB / 488.2 MB, free: 1.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003695/0.3932, allocations: 229.3 kB / 488.4 MB, free: 1.043 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.3936, allocations: 289.2 kB / 488.7 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004593/0.3941, allocations: 215.1 kB / 488.9 MB, free: 0.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3941, allocations: 0 / 488.9 MB, free: 0.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001406/0.3955, allocations: 0.7393 MB / 489.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.3955, allocations: 8.062 kB / 489.7 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3956, allocations: 7.984 kB / 489.7 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009393/0.3965, allocations: 414.8 kB / 490.1 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.3969, allocations: 87.86 kB / 490.2 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.3982, allocations: 1.071 MB / 491.2 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004894/0.3987, allocations: 76 kB / 491.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.737e-05/0.3987, allocations: 31.89 kB / 491.3 MB, free: 14.08 MB / 378.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 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.3989, allocations: 123.4 kB / 491.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.129e-05/0.399, allocations: 39.53 kB / 491.5 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.4005, allocations: 0.7674 MB / 492.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.4005, allocations: 19.92 kB / 492.3 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4005, allocations: 4 kB / 492.3 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4005, allocations: 0 / 492.3 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.4032, allocations: 1.545 MB / 493.8 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.4032, allocations: 3.984 kB / 493.8 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.4036, allocations: 87.88 kB / 493.9 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008448/0.4045, allocations: 389.2 kB / 494.3 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.971e-05/0.4045, allocations: 11.98 kB / 494.3 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.4056, allocations: 1.025 MB / 495.3 MB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4057, allocations: 0 / 495.3 MB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001884/0.4075, allocations: 1.156 MB / 496.5 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00246/0.41, allocations: 1.853 MB / 498.3 MB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002284/0.4103, allocations: 176.5 kB / 498.5 MB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.994e-05/0.4104, allocations: 4 kB / 498.5 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004825/0.4109, allocations: 79.89 kB / 498.6 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.4111, allocations: 104.4 kB / 498.7 MB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.861e-05/0.4111, allocations: 23.98 kB / 498.7 MB, free: 6.488 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001581/0.4113, allocations: 176.5 kB / 498.9 MB, free: 6.312 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001074/0.4124, allocations: 131.9 kB / 499 MB, free: 6.184 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002398/0.4126, allocations: 156.7 kB / 499.2 MB, free: 6.023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.4137, allocations: 0.602 MB / 499.8 MB, free: 5.414 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4137, allocations: 0 / 499.8 MB, free: 5.414 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005772/0.4143, allocations: 330.3 kB / 0.4884 GB, free: 5.094 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.4146, allocations: 43.45 kB / 0.4884 GB, free: 5.055 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.4162, allocations: 0.725 MB / 0.4891 GB, free: 4.301 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005134/0.4167, allocations: 0.8832 MB / 0.49 GB, free: 3.387 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4168, allocations: 7.938 kB / 0.49 GB, free: 3.379 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)