Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.001676/0.001676, allocations: 199.9 kB / 18 MB, free: 5.094 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.459/1.459, allocations: 205.1 MB / 223.9 MB, free: 12.3 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.001188/0.001188, allocations: 44.36 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1119, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005848/0.1178, allocations: 2.334 MB / 376.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002558/0.1203, allocations: 0.9643 MB / 377.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002606/0.1206, allocations: 7.938 kB / 377.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.1209, allocations: 43.58 kB / 377.8 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006189/0.1216, allocations: 131.3 kB / 378 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005474/0.1221, allocations: 179.6 kB / 378.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007149/0.1229, allocations: 418.8 kB / 378.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.123, allocations: 72.67 kB / 378.6 MB, free: 440 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002673/0.1233, allocations: 187.4 kB / 378.8 MB, free: 252 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003353/0.1237, allocations: 215.3 kB / 379 MB, free: 36 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.523e-05/0.1237, allocations: 32 kB / 379 MB, free: 4 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1801/0.3038, allocations: 114.1 kB / 379.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.304, allocations: 99.11 kB / 379.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.3042, allocations: 161.3 kB / 379.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005421/0.3047, allocations: 452.1 kB / 379.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3048, allocations: 1.875 kB / 379.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.3048, allocations: 2.031 kB / 379.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.3048, allocations: 0 / 379.8 MB, free: 10.13 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001089/0.3059, allocations: 0.6352 MB / 380.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3059, allocations: 10.19 kB / 380.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000315/0.3062, allocations: 47.89 kB / 380.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.3068, allocations: 307.8 kB / 380.8 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.3069, allocations: 86.73 kB / 380.9 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.872e-05/0.3069, allocations: 25.78 kB / 380.9 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006848/0.3076, allocations: 380.3 kB / 381.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.3077, allocations: 5.734 kB / 381.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.695e-05/0.3077, allocations: 12.25 kB / 381.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.3077, allocations: 9.562 kB / 381.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009606/0.3087, allocations: 419.3 kB / 381.8 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.3106, allocations: 1.233 MB / 383 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006119/0.3112, allocations: 358.2 kB / 383.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003501/0.3116, allocations: 184.9 kB / 383.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.3116, allocations: 7.906 kB / 383.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.3117, allocations: 38.62 kB / 383.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.512e-06/0.3117, allocations: 0 / 383.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004409/0.3161, allocations: 1.925 MB / 385.5 MB, free: 7.867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.3162, allocations: 85.97 kB / 385.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.3165, allocations: 245.1 kB / 385.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.3165, allocations: 32.39 kB / 385.8 MB, free: 7.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.04e-05/0.3166, allocations: 137.9 kB / 386 MB, free: 7.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.3168, allocations: 153.7 kB / 386.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.317, allocations: 84.52 kB / 386.2 MB, free: 7.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.859e-05/0.3171, allocations: 337.9 kB / 386.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005556/0.3176, allocations: 168.9 kB / 386.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006429/0.3183, allocations: 226.5 kB / 386.9 MB, free: 6.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.3194, allocations: 348 kB / 387.3 MB, free: 6.656 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3194, allocations: 0 / 387.3 MB, free: 6.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001811/0.3212, allocations: 0.5558 MB / 387.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3212, allocations: 5.781 kB / 387.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.3213, allocations: 3.062 kB / 387.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.3224, allocations: 259.3 kB / 388.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003676/0.3228, allocations: 54.73 kB / 388.1 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005413/0.3282, allocations: 2.882 MB / 391 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004231/0.3287, allocations: 25.94 kB / 391 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.3288, allocations: 19.11 kB / 391.1 MB, free: 4.176 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002966/0.3291, allocations: 157.7 kB / 391.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.3292, allocations: 24.28 kB / 391.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000119/0.3293, allocations: 46.88 kB / 391.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3293, allocations: 4.469 kB / 391.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.3294, allocations: 0.9375 kB / 391.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.3294, allocations: 2.484 kB / 391.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.3322, allocations: 1.089 MB / 392.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3322, allocations: 1.5 kB / 392.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.3326, allocations: 48.78 kB / 392.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009474/0.3335, allocations: 244.4 kB / 392.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.3336, allocations: 14.47 kB / 392.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00494/0.3385, allocations: 2.838 MB / 395.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3386, allocations: 0 / 395.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.3408, allocations: 0.8251 MB / 396.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002138/0.341, allocations: 136.8 kB / 396.5 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.851e-05/0.3411, allocations: 12.61 kB / 396.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003763/0.3415, allocations: 24.33 kB / 396.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.3417, allocations: 60.61 kB / 396.6 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.994e-05/0.3418, allocations: 11.3 kB / 396.6 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00031/0.3421, allocations: 183.8 kB / 396.8 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3421, allocations: 3.938 kB / 396.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001024/0.3432, allocations: 144.2 kB / 396.9 MB, free: 488 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002748/0.3435, allocations: 134.4 kB / 397 MB, free: 388 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.3453, allocations: 0.6292 MB / 397.7 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3453, allocations: 0 / 397.7 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.3463, allocations: 433.2 kB / 398.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006518/0.347, allocations: 32.23 kB / 398.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.3491, allocations: 0.7062 MB / 398.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005857/0.3497, allocations: 0.7776 MB / 399.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002762/0.35, allocations: 54.08 kB / 399.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.3501, allocations: 33.41 kB / 399.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3501, allocations: 0 / 399.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of Templates: time 0.02131/0.3714, allocations: 7.477 MB / 407.2 MB, free: 11.92 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)