Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01012/0.01012, allocations: 101.5 kB / 15.73 MB, free: 5.59 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.001536/0.001536, allocations: 189.6 kB / 16.67 MB, free: 5.523 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.491/1.491, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001661/0.001661, allocations: 51.92 kB / 326.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09776, allocations: 46.61 MB / 373.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003992/0.1018, allocations: 2.438 MB / 375.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.1038, allocations: 1.011 MB / 376.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.104, allocations: 0 / 376.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.1043, allocations: 55.52 kB / 376.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005481/0.1048, allocations: 155.1 kB / 376.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.1052, allocations: 183.6 kB / 377 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004953/0.1057, allocations: 470.5 kB / 377.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.1059, allocations: 96.91 kB / 377.5 MB, free: 176 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2096/0.3156, allocations: 204.2 kB / 377.7 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007659/0.3164, allocations: 248.3 kB / 378 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.3165, allocations: 37.12 kB / 378 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004167/0.317, allocations: 126.8 kB / 378.1 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002375/0.3172, allocations: 106.4 kB / 378.2 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002364/0.3175, allocations: 182.4 kB / 378.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.3185, allocations: 0.4947 MB / 378.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3185, allocations: 0 / 378.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.3185, allocations: 1.156 kB / 378.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.3186, allocations: 0 / 378.9 MB, free: 9.801 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00153/0.3201, allocations: 0.6699 MB / 379.6 MB, free: 9.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/0.3202, allocations: 9.344 kB / 379.6 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003738/0.3205, allocations: 53.69 kB / 379.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/0.3212, allocations: 328.5 kB / 380 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.3213, allocations: 89.33 kB / 380 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.464e-05/0.3214, allocations: 28.94 kB / 380.1 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009849/0.3224, allocations: 416.6 kB / 380.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.3225, allocations: 5 kB / 380.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.66e-05/0.3225, allocations: 15 kB / 380.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.3225, allocations: 11.11 kB / 380.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.3239, allocations: 470.7 kB / 381 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.326, allocations: 0.9694 MB / 381.9 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008959/0.3269, allocations: 413.8 kB / 382.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/0.3274, allocations: 233.1 kB / 382.6 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.169e-05/0.3274, allocations: 7.75 kB / 382.6 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.3275, allocations: 37.42 kB / 382.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.374e-06/0.3275, allocations: 0 / 382.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005349/0.3328, allocations: 2.168 MB / 384.8 MB, free: 7.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.3329, allocations: 83.52 kB / 384.9 MB, free: 7.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/0.3333, allocations: 258.6 kB / 385.1 MB, free: 7.281 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.848e-05/0.3333, allocations: 41.02 kB / 385.2 MB, free: 7.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.284e-05/0.3334, allocations: 134.6 kB / 385.3 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.3336, allocations: 184.5 kB / 385.5 MB, free: 6.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.3338, allocations: 90.48 kB / 385.6 MB, free: 6.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3339, allocations: 339.1 kB / 385.9 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/0.3343, allocations: 198.1 kB / 386.1 MB, free: 6.543 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005035/0.3348, allocations: 248.8 kB / 386.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008873/0.3357, allocations: 389.1 kB / 386.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3357, allocations: 0 / 386.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001337/0.3371, allocations: 0.613 MB / 387.3 MB, free: 6.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.3371, allocations: 10.22 kB / 387.3 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.3371, allocations: 4.594 kB / 387.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007825/0.3379, allocations: 268.2 kB / 387.6 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.3383, allocations: 63.17 kB / 387.7 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/0.3422, allocations: 2.924 MB / 390.6 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.3426, allocations: 34.23 kB / 390.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/0.3426, allocations: 18.78 kB / 390.6 MB, free: 3.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002522/0.3429, allocations: 154.3 kB / 390.8 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.74e-05/0.343, allocations: 38.5 kB / 390.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.335e-05/0.3431, allocations: 50.3 kB / 390.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3431, allocations: 6.516 kB / 390.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3431, allocations: 1.281 kB / 390.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3431, allocations: 2.812 kB / 390.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.3452, allocations: 1.266 MB / 392.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3453, allocations: 0 / 392.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003138/0.3456, allocations: 67.2 kB / 392.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006989/0.3463, allocations: 245.6 kB / 392.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.683e-05/0.3463, allocations: 15.2 kB / 392.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003399/0.3497, allocations: 2.854 MB / 395.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3498, allocations: 1.938 kB / 395.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.3515, allocations: 0.9546 MB / 396.3 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.3518, allocations: 154.8 kB / 396.4 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.09e-05/0.3518, allocations: 13.84 kB / 396.4 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.3521, allocations: 28.19 kB / 396.5 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.3523, allocations: 70.61 kB / 396.5 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.3524, allocations: 18.47 kB / 396.6 MB, free: 28 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002862/0.3527, allocations: 198 kB / 396.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3527, allocations: 1.375 kB / 396.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007522/0.3534, allocations: 154.5 kB / 396.9 MB, free: 15.89 MB / 334.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: 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 (31): * Single equations (assignments): 30 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002635/0.3537, allocations: 135 kB / 397 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.3553, allocations: 0.7027 MB / 397.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.3553, allocations: 1.375 kB / 397.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008948/0.3562, allocations: 479.8 kB / 398.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.3567, allocations: 52.55 kB / 398.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.3583, allocations: 0.7901 MB / 399 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005341/0.3589, allocations: 0.7971 MB / 399.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00022/0.3591, allocations: 66.09 kB / 399.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3592, allocations: 34.98 kB / 399.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3592, allocations: 0 / 399.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Templates: time 0.01535/0.3746, allocations: 7.871 MB / 407.8 MB, free: 10.82 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)