Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001372/0.001372, allocations: 109 kB / 17.06 MB, free: 5.812 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.001483/0.001483, allocations: 195 kB / 18 MB, free: 4.977 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.504/1.504, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001114/0.001114, allocations: 47.94 kB / 327.9 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0999/0.101, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003508/0.1046, allocations: 2.411 MB / 376.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.1062, allocations: 1.011 MB / 377.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.1063, allocations: 4 kB / 377.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.1066, allocations: 51.5 kB / 378 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004946/0.1071, allocations: 163 kB / 378.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.1074, allocations: 179.7 kB / 378.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004365/0.1079, allocations: 478.4 kB / 378.8 MB, free: 292 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.108, allocations: 92.91 kB / 378.8 MB, free: 196 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1971/0.3051, allocations: 203 kB / 379 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005252/0.3057, allocations: 243.3 kB / 379.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.3058, allocations: 37.78 kB / 379.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.3061, allocations: 129 kB / 379.4 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.3062, allocations: 105.2 kB / 379.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.3064, allocations: 185.6 kB / 379.7 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007425/0.3072, allocations: 0.4972 MB / 380.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3072, allocations: 2.188 kB / 380.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3072, allocations: 0 / 380.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.3073, allocations: 1.375 kB / 380.2 MB, free: 9.75 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.001339/0.3086, allocations: 0.671 MB / 380.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3086, allocations: 8.25 kB / 380.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003187/0.309, allocations: 51.53 kB / 381 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005426/0.3095, allocations: 326.7 kB / 381.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.3097, allocations: 90.06 kB / 381.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.894e-05/0.3098, allocations: 33.88 kB / 381.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009021/0.3107, allocations: 420.1 kB / 381.8 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.3107, allocations: 5.125 kB / 381.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.3108, allocations: 13.12 kB / 381.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/0.3108, allocations: 11.03 kB / 381.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.312, allocations: 475.3 kB / 382.3 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.3138, allocations: 0.9604 MB / 383.3 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008789/0.3147, allocations: 412.7 kB / 383.7 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00049/0.3152, allocations: 234.9 kB / 383.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.3152, allocations: 5.156 kB / 383.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.3152, allocations: 38.5 kB / 383.9 MB, free: 8.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.523e-06/0.3152, allocations: 0 / 383.9 MB, free: 8.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.006006/0.3213, allocations: 2.174 MB / 386.1 MB, free: 7.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.3213, allocations: 84.48 kB / 386.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.3218, allocations: 257.2 kB / 386.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.948e-05/0.3219, allocations: 42.16 kB / 386.5 MB, free: 7.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.322, allocations: 129.3 kB / 386.6 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.3222, allocations: 186.5 kB / 386.8 MB, free: 6.945 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.3224, allocations: 89.44 kB / 386.9 MB, free: 6.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3226, allocations: 338.9 kB / 387.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004783/0.3231, allocations: 193.6 kB / 387.4 MB, free: 6.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005133/0.3236, allocations: 249.2 kB / 387.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008575/0.3245, allocations: 391.7 kB / 388 MB, free: 6.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3245, allocations: 0.9688 kB / 388 MB, free: 6.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001328/0.3258, allocations: 0.6169 MB / 388.6 MB, free: 6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.3258, allocations: 6.438 kB / 388.7 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.3259, allocations: 7.875 kB / 388.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007926/0.3266, allocations: 260 kB / 388.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.327, allocations: 69.25 kB / 389 MB, free: 5.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003999/0.331, allocations: 2.926 MB / 391.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.3313, allocations: 34.22 kB / 391.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.548e-05/0.3314, allocations: 18.06 kB / 392 MB, free: 3.719 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.0001861/0.3316, allocations: 155.2 kB / 392.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.395e-05/0.3316, allocations: 35.16 kB / 392.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.3317, allocations: 51 kB / 392.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.3318, allocations: 6.188 kB / 392.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3318, allocations: 3.938 kB / 392.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3318, allocations: 6.906 kB / 392.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.334, allocations: 1.262 MB / 393.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.334, allocations: 0 / 393.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003247/0.3343, allocations: 64.97 kB / 393.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006594/0.335, allocations: 248.2 kB / 393.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.113e-05/0.3351, allocations: 15.08 kB / 393.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003461/0.3385, allocations: 2.846 MB / 396.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3385, allocations: 0 / 396.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.3403, allocations: 0.9643 MB / 397.6 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.3405, allocations: 145.8 kB / 397.7 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.3406, allocations: 12.78 kB / 397.8 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.3409, allocations: 33.52 kB / 397.8 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.3411, allocations: 65.47 kB / 397.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.3411, allocations: 17.73 kB / 397.9 MB, free: 0 / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.3414, allocations: 205.3 kB / 398.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3414, allocations: 4 kB / 398.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007057/0.3422, allocations: 154.5 kB / 398.2 MB, free: 15.88 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.0002786/0.3424, allocations: 141.9 kB / 398.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.344, allocations: 0.7027 MB / 399.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.344, allocations: 1.125 kB / 399.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008881/0.3449, allocations: 480.4 kB / 399.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.3454, allocations: 48.47 kB / 399.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.3469, allocations: 0.7852 MB / 400.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.3474, allocations: 0.7973 MB / 401.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.3476, allocations: 65.59 kB / 401.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.3478, allocations: 33.55 kB / 401.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3478, allocations: 1.062 kB / 401.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Templates: time 0.01442/0.3622, allocations: 8.181 MB / 409.4 MB, free: 10.61 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)