Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 179.3 kB / 8.478 MB, free: 1.875 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.221/1.221, allocations: 205.2 MB / 214.1 MB, free: 5.156 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.000837/0.0008371, allocations: 86.31 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1744/0.1753, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07492/0.2502, allocations: 47.58 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2312/0.4815, allocations: 79.35 MB / 442 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.4818, allocations: 67.58 kB / 442 MB, free: 10.68 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.02521/0.507, allocations: 9.565 MB / 451.6 MB, free: 8.141 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.507, allocations: 7.469 kB / 451.6 MB, free: 8.141 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000334/0.5074, allocations: 50.34 kB / 451.7 MB, free: 8.117 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.5077, allocations: 269.8 kB / 451.9 MB, free: 7.879 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.5078, allocations: 79.14 kB / 452 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.5079, allocations: 19.44 kB / 452 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005259/0.5084, allocations: 361.9 kB / 452.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004287/0.5089, allocations: 326.5 kB / 452.7 MB, free: 7.617 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.5089, allocations: 3.906 kB / 452.7 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.5089, allocations: 0 / 452.7 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.5089, allocations: 7.5 kB / 452.7 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.5105, allocations: 1.104 MB / 453.8 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.5108, allocations: 261.3 kB / 454.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002001/0.5111, allocations: 157.9 kB / 454.2 MB, free: 6.875 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.5111, allocations: 7.594 kB / 454.2 MB, free: 6.875 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.5111, allocations: 33.25 kB / 454.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 2.214e-06/0.5111, allocations: 0 / 454.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.002218/0.5134, allocations: 1.224 MB / 455.5 MB, free: 6.207 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.5134, allocations: 87.92 kB / 455.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.5136, allocations: 187.7 kB / 455.8 MB, free: 5.996 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.5136, allocations: 25.7 kB / 455.8 MB, free: 5.965 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.307e-05/0.5137, allocations: 138.3 kB / 455.9 MB, free: 5.844 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.886e-05/0.5138, allocations: 138.6 kB / 456.1 MB, free: 5.742 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.338e-05/0.5138, allocations: 3.938 kB / 456.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.734e-05/0.5138, allocations: 336.8 kB / 456.4 MB, free: 5.418 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.514, allocations: 139.8 kB / 456.5 MB, free: 5.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.5142, allocations: 196.6 kB / 456.7 MB, free: 5.348 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.5145, allocations: 136.9 kB / 456.9 MB, free: 5.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.5145, allocations: 0 / 456.9 MB, free: 5.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007851/0.5153, allocations: 485.2 kB / 457.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.5154, allocations: 3.844 kB / 457.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.5154, allocations: 8.109 kB / 457.3 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006394/0.516, allocations: 230.8 kB / 457.6 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.5163, allocations: 57.72 kB / 457.6 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.519, allocations: 2.392 MB / 460 MB, free: 3.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.5193, allocations: 29.81 kB / 460 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.5194, allocations: 17.25 kB / 460.1 MB, free: 3.641 MB / 314.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.0001864/0.5196, allocations: 120.7 kB / 460.2 MB, free: 3.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.701e-05/0.5197, allocations: 28.34 kB / 460.2 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.619e-05/0.5198, allocations: 32.94 kB / 460.2 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.5198, allocations: 9.125 kB / 460.2 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.5198, allocations: 0 / 460.2 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.5198, allocations: 3.984 kB / 460.2 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.5212, allocations: 0.949 MB / 461.2 MB, free: 3.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.5212, allocations: 0 / 461.2 MB, free: 3.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.5215, allocations: 54.5 kB / 461.2 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006188/0.5221, allocations: 219.7 kB / 461.5 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.5222, allocations: 10.42 kB / 461.5 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002825/0.525, allocations: 2.345 MB / 463.8 MB, free: 17.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.525, allocations: 3.984 kB / 463.8 MB, free: 17.51 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001099/0.5261, allocations: 0.7141 MB / 464.5 MB, free: 17.3 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001615/0.5278, allocations: 1.272 MB / 465.8 MB, free: 16.71 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.528, allocations: 141.4 kB / 465.9 MB, free: 16.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.065e-05/0.528, allocations: 9.203 kB / 466 MB, free: 16.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/0.5284, allocations: 23.92 kB / 466 MB, free: 16.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.5285, allocations: 42.25 kB / 466 MB, free: 16.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-05/0.5285, allocations: 20.89 kB / 466 MB, free: 16.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001431/0.5287, allocations: 151.6 kB / 466.2 MB, free: 16.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00135/0.53, allocations: 111.2 kB / 466.3 MB, free: 16.46 MB / 330.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.0002779/0.5303, allocations: 150.9 kB / 466.4 MB, free: 16.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009093/0.5312, allocations: 0.4916 MB / 466.9 MB, free: 16.19 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5312, allocations: 0 / 466.9 MB, free: 16.19 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005141/0.5318, allocations: 327.3 kB / 467.3 MB, free: 16.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.5321, allocations: 14.73 kB / 467.3 MB, free: 16.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.5332, allocations: 0.5242 MB / 467.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.5337, allocations: 0.8178 MB / 468.6 MB, free: 15.02 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5337, allocations: 1.438 kB / 468.6 MB, free: 15.02 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)