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.001494/0.001494, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001521/0.001521, allocations: 193.5 kB / 16.14 MB, free: 6.707 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.453/1.453, allocations: 205.1 MB / 222 MB, free: 4.758 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.00117/0.00117, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2682, allocations: 46.62 MB / 324.7 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003377/0.2717, allocations: 2.466 MB / 327.1 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.2735, allocations: 1.018 MB / 328.2 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.2736, allocations: 4.188 kB / 328.2 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.2739, allocations: 36.27 kB / 328.2 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000413/0.2743, allocations: 135.8 kB / 328.3 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.2746, allocations: 151.2 kB / 328.5 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.275, allocations: 458 kB / 328.9 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.2752, allocations: 79.08 kB / 329 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002607/0.2755, allocations: 189.2 kB / 329.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000277/0.2757, allocations: 238 kB / 329.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.548e-05/0.2758, allocations: 23.22 kB / 329.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.276, allocations: 99.12 kB / 329.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.2762, allocations: 94.39 kB / 329.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.2764, allocations: 167.9 kB / 329.8 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004915/0.2769, allocations: 483.2 kB / 330.3 MB, free: 13.82 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2769, allocations: 5.562 kB / 330.3 MB, free: 13.81 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2769, allocations: 0 / 330.3 MB, free: 13.81 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2769, allocations: 0 / 330.3 MB, free: 13.81 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.001323/0.2782, allocations: 0.6719 MB / 330.9 MB, free: 13.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2783, allocations: 9.875 kB / 330.9 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003365/0.2786, allocations: 49.02 kB / 331 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.2791, allocations: 321.6 kB / 331.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.2793, allocations: 89.17 kB / 331.4 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-05/0.2794, allocations: 32.19 kB / 331.4 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008681/0.2802, allocations: 413.5 kB / 331.8 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.2803, allocations: 1.188 kB / 331.8 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.2803, allocations: 14.22 kB / 331.8 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.2803, allocations: 7.656 kB / 331.9 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.2814, allocations: 480.7 kB / 332.3 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.2831, allocations: 0.9747 MB / 333.3 MB, free: 11.33 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008176/0.2839, allocations: 416.4 kB / 333.7 MB, free: 10.92 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000472/0.2844, allocations: 230.1 kB / 333.9 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.23e-05/0.2844, allocations: 16.36 kB / 333.9 MB, free: 10.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.2845, allocations: 35 kB / 334 MB, free: 10.63 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.804e-06/0.2845, allocations: 0 / 334 MB, free: 10.63 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005291/0.2898, allocations: 2.164 MB / 336.1 MB, free: 8.355 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.2899, allocations: 85.67 kB / 336.2 MB, free: 8.254 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.2902, allocations: 255.1 kB / 336.5 MB, free: 7.996 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.2903, allocations: 41.7 kB / 336.5 MB, free: 7.949 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.2904, allocations: 133.1 kB / 336.6 MB, free: 7.812 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.2906, allocations: 185.4 kB / 336.8 MB, free: 7.629 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.2907, allocations: 90.23 kB / 336.9 MB, free: 7.535 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.2909, allocations: 342.8 kB / 337.3 MB, free: 7.191 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.2914, allocations: 189 kB / 337.4 MB, free: 7.004 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.2919, allocations: 252.6 kB / 337.7 MB, free: 6.75 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008162/0.2927, allocations: 388.3 kB / 338.1 MB, free: 6.367 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2927, allocations: 0 / 338.1 MB, free: 6.367 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001257/0.294, allocations: 0.6174 MB / 338.7 MB, free: 5.738 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.294, allocations: 7.938 kB / 338.7 MB, free: 5.73 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.294, allocations: 0 / 338.7 MB, free: 5.73 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007387/0.2947, allocations: 262.5 kB / 338.9 MB, free: 5.473 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.2951, allocations: 67.94 kB / 339 MB, free: 5.406 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003727/0.2988, allocations: 2.678 MB / 341.7 MB, free: 2.598 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.2992, allocations: 35.94 kB / 341.7 MB, free: 2.562 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.2992, allocations: 16 kB / 341.7 MB, free: 2.547 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.0002309/0.2995, allocations: 165.8 kB / 341.9 MB, free: 2.375 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.563e-05/0.2996, allocations: 31.62 kB / 341.9 MB, free: 2.344 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.213e-05/0.2997, allocations: 43.31 kB / 342 MB, free: 2.301 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.2997, allocations: 7.938 kB / 342 MB, free: 2.293 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.2997, allocations: 4 kB / 342 MB, free: 2.289 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.2997, allocations: 3.984 kB / 342 MB, free: 2.285 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.302, allocations: 1.268 MB / 343.3 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.302, allocations: 0 / 343.3 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003279/0.3024, allocations: 67.98 kB / 343.3 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006762/0.303, allocations: 244.6 kB / 343.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.3031, allocations: 15.98 kB / 343.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003695/0.3068, allocations: 2.597 MB / 346.2 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3068, allocations: 0 / 346.2 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/0.3087, allocations: 0.9572 MB / 347.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.3089, allocations: 152.6 kB / 347.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-05/0.309, allocations: 12 kB / 347.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.3093, allocations: 27.97 kB / 347.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.3095, allocations: 72.27 kB / 347.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.3095, allocations: 19.98 kB / 347.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.3098, allocations: 204.6 kB / 347.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3098, allocations: 0 / 347.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007008/0.3105, allocations: 152 kB / 347.8 MB, free: 12.27 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.000276/0.3108, allocations: 139.1 kB / 347.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.3123, allocations: 0.6995 MB / 348.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3123, allocations: 0 / 348.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007954/0.3131, allocations: 475.6 kB / 349.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.3136, allocations: 48.42 kB / 349.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.3152, allocations: 0.9245 MB / 350 MB, free: 9.941 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.3156, allocations: 0.797 MB / 350.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002306/0.3158, allocations: 70.92 kB / 350.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.794e-05/0.3159, allocations: 27.42 kB / 350.9 MB, free: 9.016 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3159, allocations: 0 / 350.9 MB, free: 9.016 MB / 286.1 MB Notification: Performance of Templates: time 0.01285/0.3288, allocations: 7.267 MB / 358.2 MB, free: 1.742 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)