Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006468/0.006468, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00124/0.00124, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.499/1.499, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.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.00122/0.00122, allocations: 47.94 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1075, allocations: 46.62 MB / 373.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004392/0.1119, allocations: 2.723 MB / 375.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.1141, allocations: 1.132 MB / 377 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.1143, allocations: 4 kB / 377 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002765/0.1146, allocations: 75.36 kB / 377.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006541/0.1153, allocations: 194.8 kB / 377.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004812/0.1157, allocations: 243.6 kB / 377.5 MB, free: 200 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2344/0.3501, allocations: 0.6428 MB / 378.2 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003133/0.3505, allocations: 123.2 kB / 378.3 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005898/0.3511, allocations: 297.5 kB / 378.6 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005318/0.3516, allocations: 342.5 kB / 378.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.3517, allocations: 52.94 kB / 378.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003715/0.3521, allocations: 142 kB / 379.1 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.3523, allocations: 148.4 kB / 379.2 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003317/0.3527, allocations: 248.6 kB / 379.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.3538, allocations: 0.6465 MB / 380.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3538, allocations: 3.25 kB / 380.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3538, allocations: 0 / 380.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.3538, allocations: 0.5625 kB / 380.1 MB, free: 9.598 MB / 318.1 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.00172/0.3555, allocations: 0.7891 MB / 380.9 MB, free: 9.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.3556, allocations: 14.02 kB / 380.9 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004264/0.356, allocations: 68.86 kB / 381 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006719/0.3567, allocations: 366.5 kB / 381.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.3569, allocations: 97.98 kB / 381.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.357, allocations: 41.92 kB / 381.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.3582, allocations: 0.5634 MB / 382.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.3582, allocations: 3.266 kB / 382.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.738e-05/0.3583, allocations: 19.81 kB / 382.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/0.3583, allocations: 10.44 kB / 382.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.3598, allocations: 0.6335 MB / 382.7 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002539/0.3623, allocations: 1.289 MB / 384 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.3636, allocations: 0.5493 MB / 384.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000688/0.3643, allocations: 323.1 kB / 384.9 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.943e-05/0.3644, allocations: 14.27 kB / 384.9 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.3644, allocations: 42.34 kB / 384.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.104e-06/0.3644, allocations: 4 kB / 384.9 MB, free: 7.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.007459/0.3719, allocations: 2.855 MB / 387.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/0.372, allocations: 89.56 kB / 387.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.3726, allocations: 338.7 kB / 388.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.876e-05/0.3726, allocations: 43.61 kB / 388.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3728, allocations: 162.2 kB / 388.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.3729, allocations: 229.4 kB / 388.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.3732, allocations: 123.8 kB / 388.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.289e-05/0.3733, allocations: 348.3 kB / 389.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006322/0.3739, allocations: 288.1 kB / 389.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000682/0.3746, allocations: 352.7 kB / 389.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.3757, allocations: 0.5247 MB / 390.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3757, allocations: 1.344 kB / 390.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001884/0.3776, allocations: 0.8843 MB / 391.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3776, allocations: 8.062 kB / 391.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.3776, allocations: 3.938 kB / 391.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.3788, allocations: 477.9 kB / 391.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004848/0.3793, allocations: 79.38 kB / 391.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.3806, allocations: 1.075 MB / 392.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.3811, allocations: 59.12 kB / 392.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.971e-05/0.3812, allocations: 27.19 kB / 392.8 MB, free: 3.676 MB / 318.1 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.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002544/0.3814, allocations: 179.2 kB / 393 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.3816, allocations: 47.02 kB / 393.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.3817, allocations: 68.95 kB / 393.1 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.3817, allocations: 10.81 kB / 393.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.3817, allocations: 0 / 393.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3818, allocations: 4.172 kB / 393.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003523/0.3853, allocations: 1.754 MB / 394.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3853, allocations: 4.641 kB / 394.9 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.3857, allocations: 77 kB / 395 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.3867, allocations: 455.3 kB / 395.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.225e-05/0.3868, allocations: 27.94 kB / 395.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.388, allocations: 1.036 MB / 396.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.388, allocations: 1.734 kB / 396.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.3907, allocations: 1.307 MB / 397.8 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.391, allocations: 179.1 kB / 398 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.683e-05/0.3911, allocations: 20.95 kB / 398 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.3915, allocations: 53.16 kB / 398 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.3917, allocations: 84.14 kB / 398.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.454e-05/0.3918, allocations: 24.81 kB / 398.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002857/0.3921, allocations: 249.2 kB / 398.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3921, allocations: 0 / 398.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006008/0.3927, allocations: 142.9 kB / 398.5 MB, free: 0.8398 MB / 318.1 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) * Number of clocked states: 0 () * 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 (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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000244/0.393, allocations: 154 kB / 398.7 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.3945, allocations: 0.7181 MB / 399.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3945, allocations: 0 / 399.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008057/0.3953, allocations: 391.3 kB / 399.8 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.3958, allocations: 49.84 kB / 399.8 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.3982, allocations: 1.11 MB / 400.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.3986, allocations: 0.8159 MB / 401.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.3988, allocations: 60.95 kB / 401.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.399, allocations: 42.06 kB / 401.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.399, allocations: 0 / 401.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of Templates: time 0.01697/0.4159, allocations: 10.07 MB / 411.9 MB, free: 7.551 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)