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.001181/0.001181, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001786/0.001786, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.000462/0.0004624, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2708, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002383/0.2733, allocations: 1.955 MB / 328.4 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.275, allocations: 0.9084 MB / 329.3 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.2752, allocations: 3.406 kB / 329.3 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.2754, allocations: 39.92 kB / 329.4 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004011/0.2758, allocations: 104.5 kB / 329.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.2761, allocations: 145.8 kB / 329.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003896/0.2765, allocations: 370.7 kB / 330 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.2766, allocations: 45.44 kB / 330 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.2769, allocations: 162.5 kB / 330.2 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.2772, allocations: 190.3 kB / 330.4 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.766e-05/0.2772, allocations: 21.25 kB / 330.4 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.2774, allocations: 89.28 kB / 330.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.2775, allocations: 80.92 kB / 330.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.73e-05/0.2776, allocations: 75.17 kB / 330.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.278, allocations: 316.9 kB / 330.9 MB, free: 14.12 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.278, allocations: 0 / 330.9 MB, free: 14.12 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.278, allocations: 1.062 kB / 330.9 MB, free: 14.12 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2781, allocations: 0 / 330.9 MB, free: 14.12 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.001105/0.2792, allocations: 0.5808 MB / 331.5 MB, free: 13.61 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2792, allocations: 9.344 kB / 331.5 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.2795, allocations: 53.8 kB / 331.6 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.2799, allocations: 298.5 kB / 331.9 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.2801, allocations: 87.52 kB / 332 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.2801, allocations: 25.88 kB / 332 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007063/0.2809, allocations: 377.5 kB / 332.4 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.2809, allocations: 5.125 kB / 332.4 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.2809, allocations: 11.03 kB / 332.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.281, allocations: 6.531 kB / 332.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008915/0.2819, allocations: 424.6 kB / 332.8 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.284, allocations: 1.257 MB / 334.1 MB, free: 11.72 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006747/0.2847, allocations: 359 kB / 334.4 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.2851, allocations: 188.8 kB / 334.6 MB, free: 11.18 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.2851, allocations: 4 kB / 334.6 MB, free: 11.17 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.2852, allocations: 43.27 kB / 334.6 MB, free: 11.12 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.593e-06/0.2852, allocations: 0 / 334.6 MB, free: 11.12 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.00455/0.2897, allocations: 1.952 MB / 336.6 MB, free: 9.055 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.2898, allocations: 84.86 kB / 336.7 MB, free: 8.953 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.2901, allocations: 246.2 kB / 336.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.2902, allocations: 37.69 kB / 336.9 MB, free: 8.656 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.2903, allocations: 136.6 kB / 337.1 MB, free: 8.52 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.2905, allocations: 150 kB / 337.2 MB, free: 8.371 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.618e-05/0.2905, allocations: 12 kB / 337.2 MB, free: 8.359 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2907, allocations: 334.8 kB / 337.6 MB, free: 8.023 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004002/0.2911, allocations: 168.8 kB / 337.7 MB, free: 7.859 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.2915, allocations: 229.9 kB / 338 MB, free: 7.613 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.2918, allocations: 172.7 kB / 338.1 MB, free: 7.449 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2918, allocations: 0 / 338.1 MB, free: 7.449 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001013/0.2928, allocations: 0.5591 MB / 338.7 MB, free: 6.879 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.2929, allocations: 4 kB / 338.7 MB, free: 6.875 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.2929, allocations: 4 kB / 338.7 MB, free: 6.871 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006964/0.2936, allocations: 244.7 kB / 338.9 MB, free: 6.629 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.2938, allocations: 55.91 kB / 339 MB, free: 6.574 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004171/0.298, allocations: 2.656 MB / 341.6 MB, free: 3.785 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.2983, allocations: 31.98 kB / 341.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.296e-05/0.2983, allocations: 19.97 kB / 341.7 MB, free: 3.734 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (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.0001903/0.2985, allocations: 161.8 kB / 341.8 MB, free: 3.566 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.2986, allocations: 23.72 kB / 341.9 MB, free: 3.543 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.829e-05/0.2987, allocations: 42.98 kB / 341.9 MB, free: 3.5 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.2987, allocations: 4 kB / 341.9 MB, free: 3.496 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2987, allocations: 0 / 341.9 MB, free: 3.496 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.2987, allocations: 7.938 kB / 341.9 MB, free: 3.488 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.3009, allocations: 1.1 MB / 343 MB, free: 2.328 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3009, allocations: 0 / 343 MB, free: 2.328 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.3011, allocations: 43.91 kB / 343.1 MB, free: 2.285 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006261/0.3017, allocations: 240.9 kB / 343.3 MB, free: 2.047 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.3018, allocations: 19.94 kB / 343.3 MB, free: 2.027 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004242/0.306, allocations: 2.585 MB / 345.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3061, allocations: 0 / 345.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.3076, allocations: 0.8375 MB / 346.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.3078, allocations: 140.8 kB / 346.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3079, allocations: 11.98 kB / 346.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.3081, allocations: 27.98 kB / 346.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.3083, allocations: 71.92 kB / 347 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.3083, allocations: 12 kB / 347 MB, free: 14.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.3086, allocations: 185.4 kB / 347.2 MB, free: 14 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3086, allocations: 0 / 347.2 MB, free: 14 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006482/0.3093, allocations: 140 kB / 347.3 MB, free: 13.86 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 (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.0003359/0.3096, allocations: 139.1 kB / 347.5 MB, free: 13.71 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.3112, allocations: 0.6251 MB / 348.1 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3112, allocations: 0 / 348.1 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.3119, allocations: 437.6 kB / 348.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.3124, allocations: 35.94 kB / 348.5 MB, free: 12.6 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.3141, allocations: 0.832 MB / 349.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.3146, allocations: 0.7764 MB / 350.2 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.3148, allocations: 58.94 kB / 350.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.603e-05/0.3149, allocations: 23.42 kB / 350.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3149, allocations: 0 / 350.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of Templates: time 0.01291/0.3278, allocations: 6.378 MB / 356.6 MB, free: 4.473 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)