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.001526/0.001526, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001843/0.001843, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.51/1.51, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.00114/0.00114, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.267, allocations: 46.63 MB / 324.8 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003623/0.2707, allocations: 2.469 MB / 327.3 MB, free: 15.99 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.2725, allocations: 1.004 MB / 328.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.2727, allocations: 7.594 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.273, allocations: 40.16 kB / 328.4 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005109/0.2735, allocations: 127.1 kB / 328.5 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.2738, allocations: 166 kB / 328.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005604/0.2744, allocations: 474 kB / 329.1 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.2746, allocations: 81.48 kB / 329.2 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003333/0.275, allocations: 223.3 kB / 329.4 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003764/0.2754, allocations: 244 kB / 329.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-05/0.2755, allocations: 36.88 kB / 329.7 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002519/0.2757, allocations: 114.7 kB / 329.8 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.2759, allocations: 109.5 kB / 329.9 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002058/0.2761, allocations: 185.1 kB / 330.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005991/0.2767, allocations: 492.4 kB / 330.6 MB, free: 13.75 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2767, allocations: 1.125 kB / 330.6 MB, free: 13.75 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2767, allocations: 0 / 330.6 MB, free: 13.75 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.2767, allocations: 0 / 330.6 MB, free: 13.75 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001399/0.2781, allocations: 0.6762 MB / 331.2 MB, free: 13.17 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.2782, allocations: 8.906 kB / 331.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003255/0.2785, allocations: 58.44 kB / 331.3 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000466/0.279, allocations: 316.6 kB / 331.6 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.2792, allocations: 90.2 kB / 331.7 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.433e-05/0.2792, allocations: 32.38 kB / 331.7 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008869/0.2801, allocations: 417 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.2802, allocations: 1.5 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.922e-05/0.2802, allocations: 21.45 kB / 332.2 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.2803, allocations: 15.97 kB / 332.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.2814, allocations: 468.8 kB / 332.6 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.2833, allocations: 0.9696 MB / 333.6 MB, free: 11.15 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008261/0.2841, allocations: 409.1 kB / 334 MB, free: 10.74 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004622/0.2846, allocations: 230.1 kB / 334.2 MB, free: 10.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.415e-05/0.2847, allocations: 12.44 kB / 334.2 MB, free: 10.5 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.2847, allocations: 31 kB / 334.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.482e-06/0.2847, allocations: 0 / 334.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005349/0.2901, allocations: 2.171 MB / 336.4 MB, free: 8.18 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.2901, allocations: 89.67 kB / 336.5 MB, free: 8.074 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.2905, allocations: 259.1 kB / 336.8 MB, free: 7.812 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.2905, allocations: 33.7 kB / 336.8 MB, free: 7.773 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.2906, allocations: 137.1 kB / 337 MB, free: 7.633 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.2908, allocations: 185.4 kB / 337.1 MB, free: 7.449 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.291, allocations: 90.16 kB / 337.2 MB, free: 7.355 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2911, allocations: 342.8 kB / 337.6 MB, free: 7.012 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004427/0.2916, allocations: 201 kB / 337.8 MB, free: 6.812 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004542/0.292, allocations: 244.6 kB / 338 MB, free: 6.566 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007945/0.2928, allocations: 388.3 kB / 338.4 MB, free: 6.184 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2929, allocations: 4 kB / 338.4 MB, free: 6.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00118/0.294, allocations: 0.6096 MB / 339 MB, free: 5.559 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.2941, allocations: 11.88 kB / 339 MB, free: 5.547 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2941, allocations: 0 / 339 MB, free: 5.547 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007423/0.2948, allocations: 261.8 kB / 339.3 MB, free: 5.289 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.2952, allocations: 67.89 kB / 339.3 MB, free: 5.223 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003913/0.2991, allocations: 2.928 MB / 342.2 MB, free: 2.16 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000314/0.2994, allocations: 32.03 kB / 342.3 MB, free: 2.129 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.2995, allocations: 19.98 kB / 342.3 MB, free: 2.109 MB / 270.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.0002085/0.2997, allocations: 153.8 kB / 342.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.2998, allocations: 35.56 kB / 342.5 MB, free: 1.914 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.2999, allocations: 47.3 kB / 342.5 MB, free: 1.867 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.944e-06/0.2999, allocations: 8 kB / 342.5 MB, free: 1.859 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2999, allocations: 0 / 342.5 MB, free: 1.859 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.2999, allocations: 3.984 kB / 342.5 MB, free: 1.855 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.302, allocations: 1.272 MB / 343.8 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.302, allocations: 4 kB / 343.8 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.3024, allocations: 63.95 kB / 343.9 MB, free: 464 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006473/0.303, allocations: 240.6 kB / 344.1 MB, free: 220 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.132e-05/0.3031, allocations: 19.98 kB / 344.1 MB, free: 200 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003671/0.3068, allocations: 2.846 MB / 347 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3068, allocations: 0 / 347 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.3085, allocations: 0.9572 MB / 347.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/0.3087, allocations: 152.7 kB / 348.1 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.339e-05/0.3088, allocations: 15.94 kB / 348.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.3091, allocations: 27.97 kB / 348.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.3093, allocations: 72.39 kB / 348.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/0.3093, allocations: 12 kB / 348.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000219/0.3095, allocations: 196.6 kB / 348.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3095, allocations: 0 / 348.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006501/0.3102, allocations: 160 kB / 348.6 MB, free: 11.59 MB / 286.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.0002425/0.3104, allocations: 139.2 kB / 348.7 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.3119, allocations: 0.7267 MB / 349.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3119, allocations: 0 / 349.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007902/0.3127, allocations: 483.7 kB / 349.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.3132, allocations: 44.48 kB / 349.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.3148, allocations: 0.9386 MB / 350.9 MB, free: 9.215 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.3152, allocations: 0.7968 MB / 351.7 MB, free: 8.387 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002196/0.3154, allocations: 62.95 kB / 351.7 MB, free: 8.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3155, allocations: 35.41 kB / 351.8 MB, free: 8.285 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3155, allocations: 0 / 351.8 MB, free: 8.285 MB / 286.1 MB Notification: Performance of Templates: time 0.01452/0.3301, allocations: 7.688 MB / 359.5 MB, free: 0.5898 MB / 286.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)