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.00121/0.00121, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001315/0.001315, allocations: 177.3 kB / 15.94 MB, free: 228 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.659/1.659, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.000488/0.0004881, allocations: 8 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2838, allocations: 47.58 MB / 326.4 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002774/0.2867, allocations: 1.88 MB / 328.3 MB, free: 15.99 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.2884, allocations: 0.9257 MB / 329.2 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.2885, allocations: 2.781 kB / 329.2 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.2887, allocations: 30.95 kB / 329.3 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005444/0.2892, allocations: 145.6 kB / 329.4 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.2896, allocations: 128.4 kB / 329.5 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000394/0.29, allocations: 259.8 kB / 329.8 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.2902, allocations: 53.83 kB / 329.8 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.2904, allocations: 158 kB / 330 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002985/0.2907, allocations: 193 kB / 330.2 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.302e-05/0.2908, allocations: 17.03 kB / 330.2 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.291, allocations: 81.94 kB / 330.3 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.2912, allocations: 81 kB / 330.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.798e-05/0.2913, allocations: 71.17 kB / 330.4 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003806/0.2917, allocations: 320.5 kB / 330.7 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2917, allocations: 1.188 kB / 330.7 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2917, allocations: 0 / 330.7 MB, free: 14.28 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.2917, allocations: 0 / 330.7 MB, free: 14.28 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.00113/0.2928, allocations: 0.5847 MB / 331.3 MB, free: 13.76 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2929, allocations: 8.469 kB / 331.3 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003164/0.2932, allocations: 50.41 kB / 331.4 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.2937, allocations: 299.2 kB / 331.7 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.2938, allocations: 86.3 kB / 331.8 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.124e-05/0.2939, allocations: 34.06 kB / 331.8 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007052/0.2946, allocations: 371.7 kB / 332.2 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.2946, allocations: 2.156 kB / 332.2 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.2947, allocations: 10.03 kB / 332.2 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.2947, allocations: 7.219 kB / 332.2 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008911/0.2956, allocations: 429 kB / 332.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.2977, allocations: 1.261 MB / 333.9 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006556/0.2984, allocations: 359 kB / 334.2 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.2984, allocations: 4 kB / 334.2 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.2985, allocations: 42.56 kB / 334.3 MB, free: 11.47 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.894e-06/0.2985, allocations: 0 / 334.3 MB, free: 11.47 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004663/0.3032, allocations: 1.941 MB / 336.2 MB, free: 9.414 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.3032, allocations: 88.84 kB / 336.3 MB, free: 9.309 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.3035, allocations: 242.2 kB / 336.5 MB, free: 9.059 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.3036, allocations: 37.7 kB / 336.6 MB, free: 9.016 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.669e-05/0.3037, allocations: 132.7 kB / 336.7 MB, free: 8.883 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.3038, allocations: 146 kB / 336.8 MB, free: 8.738 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.502e-05/0.3038, allocations: 12 kB / 336.8 MB, free: 8.727 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.304, allocations: 334.8 kB / 337.2 MB, free: 8.391 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003578/0.3043, allocations: 180.7 kB / 337.3 MB, free: 8.215 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003893/0.3047, allocations: 229.9 kB / 337.6 MB, free: 7.969 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.3051, allocations: 156.8 kB / 337.7 MB, free: 7.82 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3051, allocations: 4 kB / 337.7 MB, free: 7.816 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001053/0.3062, allocations: 0.559 MB / 338.3 MB, free: 7.246 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3062, allocations: 4 kB / 338.3 MB, free: 7.242 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3062, allocations: 0 / 338.3 MB, free: 7.242 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000724/0.307, allocations: 252.8 kB / 338.5 MB, free: 6.992 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.3072, allocations: 59.83 kB / 338.6 MB, free: 6.934 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003689/0.3109, allocations: 2.703 MB / 341.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.3112, allocations: 36 kB / 341.3 MB, free: 4.062 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/0.3113, allocations: 20.06 kB / 341.4 MB, free: 4.043 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.0002039/0.3115, allocations: 153.8 kB / 341.5 MB, free: 3.883 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/0.3115, allocations: 23.72 kB / 341.5 MB, free: 3.859 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.061e-05/0.3116, allocations: 43 kB / 341.6 MB, free: 3.816 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3116, allocations: 4 kB / 341.6 MB, free: 3.812 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3117, allocations: 3.953 kB / 341.6 MB, free: 3.809 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3117, allocations: 3.984 kB / 341.6 MB, free: 3.805 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.3135, allocations: 1.096 MB / 342.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3135, allocations: 0 / 342.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.3138, allocations: 55.86 kB / 342.7 MB, free: 2.594 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006228/0.3144, allocations: 232.9 kB / 343 MB, free: 2.363 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/0.3144, allocations: 19.98 kB / 343 MB, free: 2.344 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003548/0.318, allocations: 2.643 MB / 345.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.318, allocations: 0 / 345.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.3194, allocations: 0.8337 MB / 346.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.3196, allocations: 140.8 kB / 346.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.3196, allocations: 12 kB / 346.6 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.3199, allocations: 31.98 kB / 346.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.3201, allocations: 75.8 kB / 346.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.3201, allocations: 11.98 kB / 346.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.3203, allocations: 181.5 kB / 346.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3203, allocations: 4 kB / 346.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006204/0.3209, allocations: 136 kB / 347 MB, free: 14.12 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.0002151/0.3211, allocations: 139.2 kB / 347.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.3223, allocations: 0.6289 MB / 347.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3224, allocations: 256 / 347.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006779/0.323, allocations: 433.3 kB / 348.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.3234, allocations: 32.11 kB / 348.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.3247, allocations: 0.8319 MB / 349.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.3251, allocations: 0.7803 MB / 349.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000189/0.3253, allocations: 62.94 kB / 349.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.752e-05/0.3254, allocations: 27.42 kB / 350 MB, free: 11.11 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3254, allocations: 0 / 350 MB, free: 11.11 MB / 286.1 MB Notification: Performance of Templates: time 0.011/0.3364, allocations: 6.362 MB / 356.3 MB, free: 4.738 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: