Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001343/0.001343, allocations: 169.8 kB / 12.72 MB, free: 2.594 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.227/1.227, allocations: 170.6 MB / 183.8 MB, free: 11.49 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.001307/0.001306, allocations: 99.52 kB / 223.2 MB, free: 4.117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.632e-05/2.636e-05, allocations: 0 / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07613/0.07617, allocations: 38.76 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2806/0.3569, allocations: 72.54 MB / 380.2 MB, free: 3.766 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.3571, allocations: 74.02 kB / 380.2 MB, free: 3.727 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03472/0.3918, allocations: 11.91 MB / 392.1 MB, free: 9.562 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3919, allocations: 0 / 392.1 MB, free: 9.562 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.147e-05/0.3919, allocations: 12 kB / 392.2 MB, free: 9.551 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00138/0.3933, allocations: 0.7152 MB / 392.9 MB, free: 8.816 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3934, allocations: 12.02 kB / 392.9 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.3937, allocations: 63.42 kB / 392.9 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.3942, allocations: 322.6 kB / 393.3 MB, free: 8.422 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.3944, allocations: 99.16 kB / 393.4 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.645e-05/0.3945, allocations: 47.14 kB / 393.4 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008683/0.3953, allocations: 0.5269 MB / 393.9 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.3954, allocations: 7.906 kB / 393.9 MB, free: 7.898 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.022e-05/0.3954, allocations: 18.69 kB / 394 MB, free: 7.895 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.3955, allocations: 8 kB / 394 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009538/0.3964, allocations: 0.5803 MB / 394.5 MB, free: 7.465 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.3986, allocations: 1.238 MB / 395.8 MB, free: 6.453 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008956/0.3995, allocations: 499.1 kB / 396.3 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004533/0.3999, allocations: 294.6 kB / 396.6 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.152e-05/0.4, allocations: 4.75 kB / 396.6 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.4, allocations: 42.62 kB / 396.6 MB, free: 5.871 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 2.705e-06/0.4, allocations: 0 / 396.6 MB, free: 5.871 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.003898/0.404, allocations: 2.046 MB / 398.7 MB, free: 4.195 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/0.4041, allocations: 85.67 kB / 398.7 MB, free: 4.094 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004172/0.4045, allocations: 272.5 kB / 399 MB, free: 3.863 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.671e-05/0.4046, allocations: 47.31 kB / 399 MB, free: 3.824 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.4047, allocations: 163.5 kB / 399.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.4049, allocations: 238 kB / 399.4 MB, free: 3.488 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.405, allocations: 10.56 kB / 399.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.4052, allocations: 348.9 kB / 399.8 MB, free: 3.152 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/0.4056, allocations: 260.3 kB / 400 MB, free: 2.988 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004649/0.4061, allocations: 317 kB / 400.4 MB, free: 2.766 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.4065, allocations: 244.8 kB / 400.6 MB, free: 2.598 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4065, allocations: 0 / 400.6 MB, free: 2.598 MB / 282.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001301/0.4078, allocations: 0.8255 MB / 401.4 MB, free: 2 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.4078, allocations: 11.44 kB / 401.4 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.4078, allocations: 3.984 kB / 401.4 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.4089, allocations: 0.5346 MB / 402 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/0.4093, allocations: 91.38 kB / 402.1 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.4106, allocations: 1.06 MB / 403.1 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005349/0.4112, allocations: 86.69 kB / 403.2 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.167e-05/0.4113, allocations: 30.92 kB / 403.2 MB, free: 500 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0001747/0.4115, allocations: 134.5 kB / 403.4 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.874e-05/0.4116, allocations: 47.44 kB / 403.4 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.4117, allocations: 67.02 kB / 403.5 MB, free: 308 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.4118, allocations: 8 kB / 403.5 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.4118, allocations: 0 / 403.5 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.4118, allocations: 3.984 kB / 403.5 MB, free: 296 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003073/0.4149, allocations: 1.756 MB / 405.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.4149, allocations: 64 / 405.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.4153, allocations: 86.56 kB / 405.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000999/0.4163, allocations: 0.5115 MB / 405.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/0.4163, allocations: 17.92 kB / 405.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.4174, allocations: 1.029 MB / 406.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.4174, allocations: 3.984 kB / 406.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.4193, allocations: 1.262 MB / 408.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/0.4196, allocations: 184.3 kB / 408.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.07e-05/0.4197, allocations: 22.33 kB / 408.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004674/0.4201, allocations: 70.06 kB / 408.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.4203, allocations: 101.6 kB / 408.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/0.4204, allocations: 30.66 kB / 408.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000202/0.4206, allocations: 211.2 kB / 408.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4206, allocations: 0 / 408.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005619/0.4212, allocations: 172.6 kB / 408.9 MB, free: 11.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002972/0.4215, allocations: 177.2 kB / 409.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.4226, allocations: 0.6272 MB / 409.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4226, allocations: 0 / 409.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006/0.4232, allocations: 350.7 kB / 410.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.4236, allocations: 50.83 kB / 410.1 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.4259, allocations: 0.9786 MB / 411.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.4263, allocations: 0.8249 MB / 411.9 MB, free: 9.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002603/0.4266, allocations: 67.34 kB / 412 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.4267, allocations: 46.59 kB / 412 MB, free: 9.16 MB / 298.7 MB Notification: Performance of SimCode: time 8.32e-07/0.4267, allocations: 0 / 412 MB, free: 9.16 MB / 298.7 MB Notification: Performance of Templates: time 0.01362/0.4404, allocations: 8.552 MB / 420.6 MB, free: 0.6211 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)