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.007062/0.007062, allocations: 107.1 kB / 15.74 MB, free: 5.996 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.001183/0.001183, allocations: 197.6 kB / 16.68 MB, free: 5.918 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.485/1.485, allocations: 205.1 MB / 222.5 MB, free: 4.461 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.001209/0.001209, allocations: 50.27 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1217, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004011/0.1258, allocations: 2.323 MB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.1277, allocations: 0.9722 MB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.1279, allocations: 0 / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.1282, allocations: 43.58 kB / 376.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005276/0.1287, allocations: 143.2 kB / 376.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003602/0.1291, allocations: 167.7 kB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004582/0.1295, allocations: 422.7 kB / 377.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.1297, allocations: 72.64 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.13, allocations: 183.4 kB / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.1303, allocations: 215.3 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.578e-05/0.1303, allocations: 32 kB / 377.7 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.1305, allocations: 131.8 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.1307, allocations: 95.72 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.1309, allocations: 163.2 kB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005141/0.1314, allocations: 446.7 kB / 378.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.1314, allocations: 4 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1315, allocations: 7.875 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.1315, 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.00113/0.1326, allocations: 0.6277 MB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1327, allocations: 8.031 kB / 379.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003183/0.133, allocations: 52.55 kB / 379.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006828/0.1337, allocations: 303.7 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.1338, allocations: 88.52 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.874e-05/0.1339, allocations: 28.38 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006839/0.1346, allocations: 385.4 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1346, allocations: 3.906 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.1347, allocations: 12 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1347, allocations: 4 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008246/0.1355, allocations: 417.9 kB / 380.4 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.1375, allocations: 1.237 MB / 381.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006368/0.1382, allocations: 354.5 kB / 382 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.1385, allocations: 188.8 kB / 382.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.1386, allocations: 12.84 kB / 382.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.1386, allocations: 38.5 kB / 382.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 3.787e-06/0.1386, allocations: 7.984 kB / 382.3 MB, free: 7.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004541/0.1432, allocations: 1.909 MB / 384.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.1433, allocations: 92.86 kB / 384.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.1436, allocations: 238.1 kB / 384.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.483e-05/0.1436, allocations: 41.69 kB / 384.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.1438, allocations: 132.6 kB / 384.7 MB, free: 5.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.1439, allocations: 149.9 kB / 384.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.1441, allocations: 82.03 kB / 384.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1442, allocations: 338.8 kB / 385.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.1446, allocations: 168.8 kB / 385.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.145, allocations: 225.9 kB / 385.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006883/0.1457, allocations: 351.2 kB / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1457, allocations: 0 / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001091/0.1468, allocations: 0.555 MB / 386.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.1469, allocations: 12.11 kB / 386.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1469, allocations: 0 / 386.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000805/0.1477, allocations: 252.6 kB / 386.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.1479, allocations: 51.91 kB / 386.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00417/0.1521, allocations: 2.878 MB / 389.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/0.1524, allocations: 28 kB / 389.7 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.321e-05/0.1524, allocations: 20.06 kB / 389.7 MB, free: 140 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.0002083/0.1527, allocations: 165.7 kB / 389.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.277e-05/0.1527, allocations: 27.72 kB / 389.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.1528, allocations: 42.98 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1529, allocations: 7.938 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1529, allocations: 0 / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.1529, allocations: 4 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.1547, allocations: 1.09 MB / 391.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1547, allocations: 0 / 391.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002142/0.1549, allocations: 43.97 kB / 391.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000675/0.1556, allocations: 232.8 kB / 391.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.1557, allocations: 15.98 kB / 391.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003774/0.1594, allocations: 2.843 MB / 394.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1595, allocations: 4.062 kB / 394.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.1609, allocations: 0.8233 MB / 395 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.1611, allocations: 144.7 kB / 395.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.966e-05/0.1612, allocations: 7.938 kB / 395.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.1614, allocations: 23.98 kB / 395.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.1616, allocations: 67.95 kB / 395.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.973e-05/0.1616, allocations: 12 kB / 395.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.1619, allocations: 184.2 kB / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1619, allocations: 0 / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006678/0.1626, allocations: 136 kB / 395.6 MB, free: 10.03 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.0002581/0.1628, allocations: 131.2 kB / 395.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.1642, allocations: 0.633 MB / 396.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1642, allocations: 0 / 396.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007938/0.165, allocations: 433.6 kB / 396.8 MB, free: 8.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.1655, allocations: 36.09 kB / 396.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.167, allocations: 0.6944 MB / 397.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.1675, allocations: 0.7761 MB / 398.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001872/0.1677, allocations: 58.95 kB / 398.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.123e-05/0.1677, allocations: 31.42 kB / 398.4 MB, free: 7.168 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.1677, allocations: 0 / 398.4 MB, free: 7.168 MB / 334.1 MB Notification: Performance of Templates: time 0.01457/0.1823, allocations: 7.202 MB / 405.6 MB, free: 15.95 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)