Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.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.007162/0.007162, allocations: 102 kB / 15.73 MB, free: 6.039 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.001684/0.001685, allocations: 194 kB / 16.67 MB, free: 5.961 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.522/1.522, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.00145/0.00145, allocations: 47.94 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1017, allocations: 46.62 MB / 373.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003707/0.1055, allocations: 2.427 MB / 375.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.1077, allocations: 1.011 MB / 376.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.1078, allocations: 7.938 kB / 376.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.1082, allocations: 47.58 kB / 376.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005932/0.1088, allocations: 163 kB / 376.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.1091, allocations: 179.6 kB / 377 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004989/0.1096, allocations: 478.4 kB / 377.4 MB, free: 256 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.1099, allocations: 88.91 kB / 377.5 MB, free: 164 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2061/0.316, allocations: 207.8 kB / 377.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006254/0.3167, allocations: 246.6 kB / 378 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002118/0.3169, allocations: 38.5 kB / 378 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005843/0.3175, allocations: 124.6 kB / 378.1 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002408/0.3178, allocations: 106.4 kB / 378.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004007/0.3182, allocations: 185.8 kB / 378.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.3194, allocations: 0.4905 MB / 378.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3194, allocations: 2.625 kB / 378.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3194, allocations: 0 / 378.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.304e-05/0.3195, allocations: 0 / 378.9 MB, free: 9.754 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.002037/0.3215, allocations: 0.6702 MB / 379.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.3216, allocations: 9.625 kB / 379.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004733/0.322, allocations: 54.7 kB / 379.6 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007013/0.3228, allocations: 321.8 kB / 380 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.3229, allocations: 89.98 kB / 380 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.323, allocations: 35.2 kB / 380.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009501/0.324, allocations: 417 kB / 380.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.324, allocations: 5.844 kB / 380.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.3241, allocations: 15.75 kB / 380.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.3241, allocations: 7.469 kB / 380.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.3254, allocations: 474.1 kB / 381 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.3274, allocations: 0.9674 MB / 381.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009456/0.3284, allocations: 412.3 kB / 382.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000542/0.3289, allocations: 234.6 kB / 382.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.329, allocations: 4.656 kB / 382.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.329, allocations: 41.56 kB / 382.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.016e-06/0.329, allocations: 4 kB / 382.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005736/0.3348, allocations: 2.163 MB / 384.8 MB, free: 7.465 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.3349, allocations: 88.56 kB / 384.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003969/0.3353, allocations: 258.5 kB / 385.1 MB, free: 7.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.3353, allocations: 35.98 kB / 385.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3355, allocations: 135.3 kB / 385.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.3357, allocations: 186.1 kB / 385.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.3359, allocations: 89.48 kB / 385.6 MB, free: 6.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.336, allocations: 338.5 kB / 385.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005753/0.3366, allocations: 204.1 kB / 386.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006561/0.3373, allocations: 241.8 kB / 386.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.3383, allocations: 395.1 kB / 386.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3383, allocations: 0 / 386.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001461/0.3398, allocations: 0.6131 MB / 387.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.3398, allocations: 6.375 kB / 387.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.3399, allocations: 8.578 kB / 387.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009148/0.3408, allocations: 260 kB / 387.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/0.3411, allocations: 67.44 kB / 387.7 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004001/0.3452, allocations: 2.928 MB / 390.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003394/0.3455, allocations: 28.34 kB / 390.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/0.3456, allocations: 19.14 kB / 390.6 MB, free: 3.695 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.0002438/0.3458, allocations: 160.3 kB / 390.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.535e-05/0.3459, allocations: 35.06 kB / 390.8 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.909e-05/0.346, allocations: 47.78 kB / 390.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.346, allocations: 9.156 kB / 390.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.346, allocations: 1.344 kB / 390.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3461, allocations: 2.484 kB / 390.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/0.3485, allocations: 1.261 MB / 392.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.3485, allocations: 6.812 kB / 392.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003925/0.3489, allocations: 66.58 kB / 392.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007436/0.3496, allocations: 244.8 kB / 392.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.3497, allocations: 16.05 kB / 392.5 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.3532, allocations: 2.847 MB / 395.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3532, allocations: 1.125 kB / 395.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.355, allocations: 0.9595 MB / 396.3 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.3552, allocations: 149.2 kB / 396.4 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.619e-05/0.3552, allocations: 13.61 kB / 396.4 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.3556, allocations: 38.73 kB / 396.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.3558, allocations: 65.47 kB / 396.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.163e-05/0.3558, allocations: 18.09 kB / 396.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.3561, allocations: 195.8 kB / 396.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3561, allocations: 0 / 396.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007586/0.3569, allocations: 153.9 kB / 396.9 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.0002643/0.3572, allocations: 138.4 kB / 397 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3587, allocations: 0.7062 MB / 397.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3587, allocations: 0 / 397.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008694/0.3596, allocations: 484.3 kB / 398.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.3601, allocations: 45.2 kB / 398.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.3616, allocations: 0.7897 MB / 399.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004239/0.3621, allocations: 0.7992 MB / 399.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000199/0.3623, allocations: 55.95 kB / 399.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.3624, allocations: 34.83 kB / 399.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3624, allocations: 4 kB / 399.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Templates: time 0.01731/0.3797, allocations: 8.182 MB / 408.1 MB, free: 10.56 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)