Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.009305/0.009305, allocations: 99.97 kB / 15.73 MB, free: 6.008 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.002076/0.002076, allocations: 193 kB / 16.67 MB, free: 5.93 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.559/1.559, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.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.001223/0.001223, allocations: 47.03 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003587/0.1123, allocations: 2.338 MB / 375.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.1141, allocations: 0.9605 MB / 376.5 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.1143, allocations: 3.938 kB / 376.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002439/0.1145, allocations: 47.58 kB / 376.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004992/0.1151, allocations: 135.3 kB / 376.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1154, allocations: 171.7 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.1158, allocations: 422.8 kB / 377.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.116, allocations: 73.72 kB / 377.3 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.1163, allocations: 183.4 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.1166, allocations: 215.3 kB / 377.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.174e-05/0.1166, allocations: 36 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002278/0.1169, allocations: 127.8 kB / 377.8 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.117, allocations: 95.72 kB / 377.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.1172, allocations: 159.2 kB / 378.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000516/0.1177, allocations: 446.6 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.1178, allocations: 4 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1178, allocations: 0 / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1178, allocations: 0 / 378.5 MB, free: 11.91 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.001235/0.119, allocations: 0.6316 MB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1191, allocations: 8.031 kB / 379.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003237/0.1194, allocations: 48.55 kB / 379.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006047/0.12, allocations: 311.7 kB / 379.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.1202, allocations: 80.53 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.294e-05/0.1202, allocations: 40.3 kB / 379.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007327/0.121, allocations: 373.4 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.121, allocations: 7.891 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.121, allocations: 12 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.916e-06/0.1211, allocations: 4 kB / 380 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007909/0.1219, allocations: 425.9 kB / 380.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1238, allocations: 1.23 MB / 381.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006775/0.1245, allocations: 358.5 kB / 382 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003864/0.1249, allocations: 192.8 kB / 382.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.125, allocations: 4.719 kB / 382.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.125, allocations: 42.5 kB / 382.3 MB, free: 7.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.603e-06/0.125, allocations: 4 kB / 382.3 MB, free: 7.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004647/0.1297, allocations: 1.913 MB / 384.2 MB, free: 5.941 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.1297, allocations: 92.84 kB / 384.3 MB, free: 5.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.13, allocations: 238.1 kB / 384.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.1301, allocations: 33.7 kB / 384.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.484e-05/0.1302, allocations: 136.8 kB / 384.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.1303, allocations: 153.9 kB / 384.8 MB, free: 5.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.1305, allocations: 86.02 kB / 384.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1306, allocations: 338.8 kB / 385.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/0.131, allocations: 164.8 kB / 385.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003992/0.1314, allocations: 233.8 kB / 385.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006475/0.132, allocations: 343.2 kB / 386 MB, free: 4.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.132, allocations: 0 / 386 MB, free: 4.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001055/0.1331, allocations: 0.5668 MB / 386.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1331, allocations: 4 kB / 386.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1331, allocations: 0 / 386.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006911/0.1338, allocations: 252.6 kB / 386.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.1341, allocations: 55.91 kB / 386.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003731/0.1378, allocations: 2.878 MB / 389.7 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.1381, allocations: 24.08 kB / 389.7 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-05/0.1381, allocations: 19.98 kB / 389.7 MB, free: 128 kB / 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.000211/0.1383, allocations: 161.7 kB / 389.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.806e-05/0.1384, allocations: 23.72 kB / 389.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.171e-05/0.1385, allocations: 42.98 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1385, allocations: 4 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1385, allocations: 0 / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1386, allocations: 11.98 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/0.1403, allocations: 1.086 MB / 391.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1403, allocations: 0 / 391.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.1405, allocations: 43.95 kB / 391.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006505/0.1412, allocations: 248.8 kB / 391.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.1413, allocations: 8 kB / 391.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003589/0.1448, allocations: 2.839 MB / 394.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1449, allocations: 0 / 394.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.1464, allocations: 0.8233 MB / 395 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.1466, allocations: 136.8 kB / 395.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.647e-05/0.1466, allocations: 12.06 kB / 395.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.1469, allocations: 27.97 kB / 395.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.147, allocations: 63.84 kB / 395.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.1471, allocations: 15.98 kB / 395.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.1473, allocations: 180.3 kB / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1473, allocations: 0 / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005974/0.1479, allocations: 144 kB / 395.6 MB, free: 10.02 MB / 334.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.0002478/0.1482, allocations: 131.2 kB / 395.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.1495, allocations: 0.6291 MB / 396.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.1495, allocations: 0 / 396.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.1502, allocations: 433.6 kB / 396.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.1506, allocations: 40.03 kB / 396.8 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.152, allocations: 0.6983 MB / 397.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.1524, allocations: 0.7761 MB / 398.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.1525, allocations: 58.95 kB / 398.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.039e-05/0.1526, allocations: 27.42 kB / 398.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1527, allocations: 0 / 398.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of Templates: time 0.0128/0.1655, allocations: 7.202 MB / 405.6 MB, free: 15.94 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)