Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001767/0.001767, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002139/0.002139, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 230.4 MB / 250 MB, free: 9.055 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 63.84 kB / 367.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2827, allocations: 53.31 MB / 420.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003466/0.2861, allocations: 2.294 MB / 422.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.2874, allocations: 0.7595 MB / 423.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.2875, allocations: 7.938 kB / 423.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.2877, allocations: 35.66 kB / 423.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.2879, allocations: 95.25 kB / 423.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.2883, allocations: 111.8 kB / 423.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003353/0.2886, allocations: 294.6 kB / 424.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.2887, allocations: 51.3 kB / 424.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.2889, allocations: 107.6 kB / 424.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.2891, allocations: 119.5 kB / 424.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.2891, allocations: 20 kB / 424.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.908e-05/0.2891, allocations: 20 kB / 424.5 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/0.2892, allocations: 55.77 kB / 424.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2893, allocations: 123.4 kB / 424.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.2896, allocations: 266.7 kB / 425 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2896, allocations: 0 / 425 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2896, allocations: 0 / 425 MB, free: 4.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2896, allocations: 7.938 kB / 425 MB, free: 4.012 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008653/0.2905, allocations: 0.526 MB / 425.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2906, allocations: 8.031 kB / 425.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.2906, allocations: 32.75 kB / 425.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.291, allocations: 252 kB / 425.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.2911, allocations: 16.81 kB / 425.8 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.141e-05/0.2911, allocations: 32.36 kB / 425.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004661/0.2916, allocations: 234.9 kB / 426.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.2916, allocations: 11.95 kB / 426.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.2916, allocations: 4 kB / 426.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2916, allocations: 8 kB / 426.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003528/0.292, allocations: 143.8 kB / 426.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.2935, allocations: 1.053 MB / 427.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000478/0.294, allocations: 206.3 kB / 427.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.2941, allocations: 67.48 kB / 427.6 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.2941, allocations: 8 kB / 427.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.2942, allocations: 38.5 kB / 427.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.252e-06/0.2942, allocations: 0 / 427.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005753/0.2948, allocations: 193.4 kB / 427.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.921e-05/0.2948, allocations: 140.5 kB / 427.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.295, allocations: 194.8 kB / 428.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.2951, allocations: 25.7 kB / 428.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2952, allocations: 164.2 kB / 428.3 MB, free: 388 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.2952, allocations: 67.42 kB / 428.4 MB, free: 320 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.162e-05/0.2953, allocations: 53.66 kB / 428.4 MB, free: 260 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.2955, allocations: 330.8 kB / 428.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.2957, allocations: 47.97 kB / 428.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.2959, allocations: 170.2 kB / 429 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003797/0.2963, allocations: 237.5 kB / 429.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2963, allocations: 0 / 429.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004832/0.2968, allocations: 253.2 kB / 429.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.2968, allocations: 11.94 kB / 429.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2968, allocations: 7.938 kB / 429.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.2968, allocations: 4 kB / 429.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.2971, allocations: 76.08 kB / 429.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.2971, allocations: 4.375 kB / 429.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.2973, allocations: 35.84 kB / 429.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.2973, allocations: 8 kB / 429.6 MB, free: 14.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.2974, allocations: 145.7 kB / 429.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.745e-05/0.2975, allocations: 19.84 kB / 429.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.334e-05/0.2976, allocations: 20.94 kB / 429.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2976, allocations: 0 / 429.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.2976, allocations: 7.938 kB / 429.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2976, allocations: 3.984 kB / 429.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004712/0.2981, allocations: 273.5 kB / 430 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2981, allocations: 0 / 430 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002852/0.2984, allocations: 55.91 kB / 430.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.2984, allocations: 3.938 kB / 430.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.2984, allocations: 8 kB / 430.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.24e-05/0.2984, allocations: 3.984 kB / 430.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2984, allocations: 0 / 430.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.299, allocations: 0.5291 MB / 430.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.461e-05/0.2991, allocations: 100.9 kB / 430.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/0.2991, allocations: 8 kB / 430.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.2994, allocations: 4 kB / 430.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.2994, allocations: 11.98 kB / 430.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.2994, allocations: 11.97 kB / 430.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001279/0.2996, allocations: 140.9 kB / 430.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2996, allocations: 4 kB / 430.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004383/0.3, allocations: 63.84 kB / 431 MB, free: 13.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001302/0.3001, allocations: 107.2 kB / 431.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003819/0.3005, allocations: 152.6 kB / 431.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3005, allocations: 0 / 431.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.3007, allocations: 63.89 kB / 431.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.3013, allocations: 55.36 kB / 431.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.3028, allocations: 0.8337 MB / 432.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.3032, allocations: 0.748 MB / 432.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.438e-05/0.3033, allocations: 26.27 kB / 433 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.003e-05/0.3034, allocations: 23.44 kB / 433 MB, free: 11.41 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3034, allocations: 3.938 kB / 433 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Templates: time 0.006219/0.3096, allocations: 2.309 MB / 435.3 MB, free: 9.121 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)