Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 192.4 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.1 MB / 222 MB, free: 4.949 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 43.94 kB / 278 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3083, allocations: 46.63 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00356/0.3119, allocations: 2.39 MB / 327.1 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.3138, allocations: 0.97 MB / 328 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.314, allocations: 3.688 kB / 328 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.3142, allocations: 35.98 kB / 328.1 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000404/0.3147, allocations: 105 kB / 328.2 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.315, allocations: 157.2 kB / 328.3 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004303/0.3154, allocations: 403.2 kB / 328.7 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.3156, allocations: 55.25 kB / 328.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.3159, allocations: 163.6 kB / 328.9 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.3162, allocations: 205.6 kB / 329.1 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.588e-05/0.3163, allocations: 19.31 kB / 329.1 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002788/0.3166, allocations: 108 kB / 329.3 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.3167, allocations: 80.28 kB / 329.3 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002036/0.317, allocations: 155.1 kB / 329.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00059/0.3176, allocations: 420 kB / 329.9 MB, free: 14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.314e-05/0.3176, allocations: 5.312 kB / 329.9 MB, free: 14 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3176, allocations: 0 / 329.9 MB, free: 14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.3176, allocations: 0 / 329.9 MB, free: 14 MB / 270.1 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.001588/0.3192, allocations: 0.6407 MB / 330.5 MB, free: 13.43 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.699e-05/0.3193, allocations: 9.25 kB / 330.5 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004075/0.3197, allocations: 51.52 kB / 330.6 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005465/0.3202, allocations: 291.3 kB / 330.9 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.3204, allocations: 88.23 kB / 331 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.419e-05/0.3205, allocations: 29.97 kB / 331 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009201/0.3215, allocations: 385.1 kB / 331.4 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.3215, allocations: 5.062 kB / 331.4 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.015e-05/0.3216, allocations: 10.41 kB / 331.4 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.3216, allocations: 7.125 kB / 331.4 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.3229, allocations: 420.2 kB / 331.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.3254, allocations: 1.237 MB / 333 MB, free: 11.61 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007332/0.3261, allocations: 357.6 kB / 333.4 MB, free: 11.26 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003893/0.3265, allocations: 184.8 kB / 333.6 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.3266, allocations: 8.094 kB / 333.6 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.3266, allocations: 39.28 kB / 333.6 MB, free: 11.02 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 4.449e-06/0.3266, allocations: 4 kB / 333.6 MB, free: 11.02 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.005035/0.3317, allocations: 1.925 MB / 335.5 MB, free: 8.98 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.496e-05/0.3318, allocations: 88.86 kB / 335.6 MB, free: 8.875 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.3321, allocations: 238.2 kB / 335.9 MB, free: 8.629 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/0.3321, allocations: 37.7 kB / 335.9 MB, free: 8.586 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.3323, allocations: 136.7 kB / 336 MB, free: 8.449 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.3324, allocations: 149.8 kB / 336.2 MB, free: 8.301 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.3325, allocations: 78.12 kB / 336.3 MB, free: 8.219 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3327, allocations: 338.8 kB / 336.6 MB, free: 7.879 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003631/0.3331, allocations: 172.8 kB / 336.8 MB, free: 7.711 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004035/0.3335, allocations: 229.9 kB / 337 MB, free: 7.465 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006758/0.3342, allocations: 339.2 kB / 337.3 MB, free: 7.121 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3342, allocations: 7.938 kB / 337.3 MB, free: 7.113 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001103/0.3353, allocations: 0.5552 MB / 337.9 MB, free: 6.551 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3353, allocations: 8 kB / 337.9 MB, free: 6.543 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3353, allocations: 0 / 337.9 MB, free: 6.543 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007518/0.3361, allocations: 252.6 kB / 338.1 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.3364, allocations: 55.91 kB / 338.2 MB, free: 6.238 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003694/0.3401, allocations: 2.644 MB / 340.8 MB, free: 3.461 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.3403, allocations: 27.97 kB / 340.9 MB, free: 3.434 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/0.3404, allocations: 16 kB / 340.9 MB, free: 3.418 MB / 270.1 MB 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.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002112/0.3406, allocations: 153.9 kB / 341 MB, free: 3.258 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.209e-05/0.3407, allocations: 35.59 kB / 341.1 MB, free: 3.223 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.902e-05/0.3408, allocations: 39 kB / 341.1 MB, free: 3.184 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3408, allocations: 4 kB / 341.1 MB, free: 3.18 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3408, allocations: 0 / 341.1 MB, free: 3.18 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3408, allocations: 3.984 kB / 341.1 MB, free: 3.176 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.3427, allocations: 1.1 MB / 342.2 MB, free: 2.016 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3427, allocations: 0 / 342.2 MB, free: 2.016 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.3429, allocations: 47.91 kB / 342.3 MB, free: 1.969 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000698/0.3436, allocations: 240.8 kB / 342.5 MB, free: 1.73 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.3437, allocations: 11.98 kB / 342.5 MB, free: 1.719 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003444/0.3471, allocations: 2.593 MB / 345.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3471, allocations: 0 / 345.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.3487, allocations: 0.8258 MB / 345.9 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.3488, allocations: 132.8 kB / 346 MB, free: 13.99 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.778e-05/0.3489, allocations: 12 kB / 346.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.3492, allocations: 27.97 kB / 346.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.3493, allocations: 55.91 kB / 346.1 MB, free: 13.9 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.3494, allocations: 16.05 kB / 346.2 MB, free: 13.88 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.3496, allocations: 181.5 kB / 346.3 MB, free: 13.71 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3496, allocations: 3.938 kB / 346.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006609/0.3503, allocations: 144 kB / 346.5 MB, free: 13.56 MB / 286.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002528/0.3505, allocations: 127.2 kB / 346.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.3518, allocations: 0.6254 MB / 347.2 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3519, allocations: 0 / 347.2 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007189/0.3526, allocations: 433.2 kB / 347.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.353, allocations: 43.98 kB / 347.7 MB, free: 12.31 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.3544, allocations: 0.8151 MB / 348.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.3548, allocations: 0.7764 MB / 349.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002032/0.3551, allocations: 50.95 kB / 349.3 MB, free: 10.61 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.7e-05/0.3551, allocations: 31.42 kB / 349.4 MB, free: 10.58 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3552, allocations: 3.938 kB / 349.4 MB, free: 10.58 MB / 286.1 MB Notification: Performance of Templates: time 0.01125/0.3664, allocations: 6.67 MB / 356 MB, free: 3.902 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)