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.001625/0.001625, allocations: 114.6 kB / 17.07 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.002047/0.002047, allocations: 191 kB / 18 MB, free: 5.098 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.411/1.411, allocations: 205.1 MB / 223.9 MB, free: 12.29 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.001229/0.001229, allocations: 47.92 kB / 327.9 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09543/0.09667, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003327/0.1, allocations: 2.431 MB / 376.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.1017, allocations: 1.007 MB / 377.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.1018, allocations: 7.938 kB / 377.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001981/0.102, allocations: 51.58 kB / 378 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004671/0.1025, allocations: 155 kB / 378.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000308/0.1028, allocations: 183.6 kB / 378.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.1033, allocations: 470.5 kB / 378.8 MB, free: 292 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.1035, allocations: 96.89 kB / 378.9 MB, free: 192 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2037/0.3072, allocations: 201.2 kB / 379 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.3078, allocations: 245.5 kB / 379.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.3079, allocations: 38.03 kB / 379.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000301/0.3082, allocations: 127.5 kB / 379.4 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.3084, allocations: 105.7 kB / 379.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.3086, allocations: 187.1 kB / 379.7 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006849/0.3093, allocations: 0.492 MB / 380.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3093, allocations: 0.5156 kB / 380.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3093, allocations: 3.781 kB / 380.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.3093, allocations: 1.375 kB / 380.2 MB, free: 9.762 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.001192/0.3105, allocations: 0.6794 MB / 380.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3106, allocations: 9.5 kB / 380.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.3109, allocations: 60.42 kB / 381 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004735/0.3114, allocations: 319 kB / 381.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.3115, allocations: 86.98 kB / 381.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.577e-05/0.3116, allocations: 32.62 kB / 381.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008916/0.3125, allocations: 420.8 kB / 381.8 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.3125, allocations: 1.062 kB / 381.8 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.3125, allocations: 10.28 kB / 381.8 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.853e-05/0.3126, allocations: 7.375 kB / 381.8 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.3137, allocations: 478.2 kB / 382.3 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.3154, allocations: 0.9745 MB / 383.3 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008294/0.3162, allocations: 410.8 kB / 383.7 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004623/0.3167, allocations: 230.1 kB / 383.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.206e-05/0.3167, allocations: 8.938 kB / 383.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.3168, allocations: 44.09 kB / 384 MB, free: 8.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.623e-06/0.3168, allocations: 0 / 384 MB, free: 8.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005046/0.3218, allocations: 2.166 MB / 386.1 MB, free: 7.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.3219, allocations: 83.3 kB / 386.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.3222, allocations: 265.4 kB / 386.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.3223, allocations: 37.92 kB / 386.5 MB, free: 7.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.114e-05/0.3224, allocations: 134.7 kB / 386.6 MB, free: 7.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.3225, allocations: 193.7 kB / 386.8 MB, free: 6.938 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.3227, allocations: 90.2 kB / 386.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.623e-05/0.3227, allocations: 342.8 kB / 387.2 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/0.3232, allocations: 192.6 kB / 387.4 MB, free: 6.504 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00051/0.3237, allocations: 248.5 kB / 387.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000809/0.3245, allocations: 396 kB / 388.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3245, allocations: 0 / 388.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00127/0.3258, allocations: 0.6136 MB / 388.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3258, allocations: 5.469 kB / 388.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.3259, allocations: 7.875 kB / 388.7 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000787/0.3266, allocations: 261.2 kB / 388.9 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/0.327, allocations: 67.75 kB / 389 MB, free: 5.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00366/0.3307, allocations: 2.941 MB / 391.9 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.331, allocations: 29.11 kB / 392 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.3311, allocations: 12.81 kB / 392 MB, free: 3.703 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.0002093/0.3313, allocations: 162.2 kB / 392.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.681e-05/0.3314, allocations: 40 kB / 392.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.738e-05/0.3315, allocations: 49.19 kB / 392.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.3315, allocations: 5.906 kB / 392.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3315, allocations: 2.375 kB / 392.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3315, allocations: 2.625 kB / 392.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002047/0.3336, allocations: 1.269 MB / 393.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3336, allocations: 0.9688 kB / 393.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003345/0.3339, allocations: 67.03 kB / 393.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000666/0.3346, allocations: 249.3 kB / 393.8 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.3347, allocations: 15 kB / 393.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003561/0.3382, allocations: 2.845 MB / 396.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3383, allocations: 1.156 kB / 396.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/0.3403, allocations: 0.9616 MB / 397.6 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.3405, allocations: 155.7 kB / 397.8 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.245e-05/0.3406, allocations: 12.75 kB / 397.8 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003781/0.341, allocations: 37.12 kB / 397.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.3413, allocations: 66.66 kB / 397.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.142e-05/0.3413, allocations: 18.28 kB / 397.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003395/0.3417, allocations: 194.5 kB / 398.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3417, allocations: 1.375 kB / 398.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009296/0.3426, allocations: 157.8 kB / 398.3 MB, free: 15.84 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.0003549/0.343, allocations: 136.6 kB / 398.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.3447, allocations: 0.7029 MB / 399.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3448, allocations: 0 / 399.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008598/0.3456, allocations: 480.2 kB / 399.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.3461, allocations: 44.11 kB / 399.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.3477, allocations: 0.8088 MB / 400.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.3481, allocations: 0.798 MB / 401.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002183/0.3483, allocations: 62.28 kB / 401.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.3485, allocations: 32.55 kB / 401.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3485, allocations: 1.312 kB / 401.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Templates: time 0.0147/0.3632, allocations: 7.881 MB / 409.2 MB, free: 10.79 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)