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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.00561/0.00561, allocations: 165.5 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.244/1.244, allocations: 170.8 MB / 186.6 MB, free: 1.141 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001647/0.001647, allocations: 103.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003326, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2417, allocations: 38.77 MB / 312.9 MB, free: 38.7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09077/0.3325, allocations: 70.46 MB / 383.4 MB, free: 4.051 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.3329, allocations: 75.95 kB / 383.4 MB, free: 3.977 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02603/0.3589, allocations: 9.339 MB / 392.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.359, allocations: 0 / 392.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.409e-05/0.359, allocations: 4 kB / 392.8 MB, free: 10.61 MB / 298.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.001253/0.3603, allocations: 0.5847 MB / 393.4 MB, free: 9.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3603, allocations: 8.031 kB / 393.4 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003651/0.3607, allocations: 47.61 kB / 393.4 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005017/0.3612, allocations: 274.5 kB / 393.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.3614, allocations: 91.95 kB / 393.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.416e-05/0.3614, allocations: 35.86 kB / 393.8 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007432/0.3622, allocations: 365.3 kB / 394.2 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.3622, allocations: 7.922 kB / 394.2 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.967e-05/0.3623, allocations: 12 kB / 394.2 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.3623, allocations: 12 kB / 394.2 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008859/0.3632, allocations: 413.9 kB / 394.6 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.3651, allocations: 1.178 MB / 395.8 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006543/0.3658, allocations: 331 kB / 396.1 MB, free: 7.094 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.3658, allocations: 8.141 kB / 396.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.3659, allocations: 38.56 kB / 396.1 MB, free: 7.039 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.555e-06/0.3659, allocations: 0 / 396.1 MB, free: 7.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004714/0.3706, allocations: 1.88 MB / 398 MB, free: 5.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/0.3707, allocations: 88.81 kB / 398.1 MB, free: 4.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.371, allocations: 197.5 kB / 398.3 MB, free: 4.742 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.371, allocations: 37.69 kB / 398.3 MB, free: 4.699 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/0.3711, allocations: 136.6 kB / 398.5 MB, free: 4.562 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3713, allocations: 145.9 kB / 398.6 MB, free: 4.418 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.3713, allocations: 12 kB / 398.6 MB, free: 4.406 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3714, allocations: 330.8 kB / 398.9 MB, free: 4.074 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.3718, allocations: 164.8 kB / 399.1 MB, free: 3.914 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.3722, allocations: 225.9 kB / 399.3 MB, free: 3.672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.3726, allocations: 168.7 kB / 399.5 MB, free: 3.512 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3726, allocations: 0 / 399.5 MB, free: 3.512 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001095/0.3737, allocations: 0.5395 MB / 400 MB, free: 2.961 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.3737, allocations: 12.12 kB / 400 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3737, allocations: 0 / 400 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007418/0.3745, allocations: 236.7 kB / 400.3 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.3747, allocations: 59.89 kB / 400.3 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004046/0.3788, allocations: 2.699 MB / 403 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.3791, allocations: 36.06 kB / 403.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.687e-05/0.3792, allocations: 16 kB / 403.1 MB, free: 15.77 MB / 314.7 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.0002257/0.3794, allocations: 162.5 kB / 403.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.3795, allocations: 23.72 kB / 403.3 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.3796, allocations: 42.98 kB / 403.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3796, allocations: 4 kB / 403.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3796, allocations: 4 kB / 403.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3797, allocations: 3.984 kB / 403.3 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.3816, allocations: 1.073 MB / 404.4 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3817, allocations: 4 kB / 404.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.3819, allocations: 43.91 kB / 404.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006753/0.3826, allocations: 228.9 kB / 404.7 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.3826, allocations: 11.98 kB / 404.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003591/0.3862, allocations: 2.651 MB / 407.3 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3863, allocations: 3.938 kB / 407.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.3878, allocations: 0.7981 MB / 408.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/0.388, allocations: 148.7 kB / 408.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/0.3881, allocations: 12.06 kB / 408.3 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.3883, allocations: 27.98 kB / 408.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.3885, allocations: 71.86 kB / 408.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-05/0.3886, allocations: 11.98 kB / 408.4 MB, free: 10.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002137/0.3888, allocations: 156.3 kB / 408.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3888, allocations: 4 kB / 408.6 MB, free: 10.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007172/0.3895, allocations: 147.9 kB / 408.7 MB, free: 9.918 MB / 314.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) * 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.0002873/0.3898, allocations: 139.2 kB / 408.8 MB, free: 9.773 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.3912, allocations: 0.6096 MB / 409.4 MB, free: 9.152 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.3912, allocations: 0 / 409.4 MB, free: 9.152 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007719/0.392, allocations: 433.5 kB / 409.9 MB, free: 8.715 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.3924, allocations: 20 kB / 409.9 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.3939, allocations: 0.8264 MB / 410.7 MB, free: 7.848 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.3943, allocations: 0.7842 MB / 411.5 MB, free: 7.035 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002416/0.3945, allocations: 58.95 kB / 411.6 MB, free: 6.977 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.3946, allocations: 23.42 kB / 411.6 MB, free: 6.953 MB / 314.7 MB Notification: Performance of SimCode: time 8.61e-07/0.3946, allocations: 0 / 411.6 MB, free: 6.953 MB / 314.7 MB Notification: Performance of Templates: time 0.01293/0.4076, allocations: 6.258 MB / 417.8 MB, free: 0.7109 MB / 314.7 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)