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.009484/0.009484, allocations: 102.1 kB / 15.73 MB, free: 6.5 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.00199/0.00199, allocations: 198.6 kB / 16.67 MB, free: 6.371 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.52/1.52, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001241/0.001241, allocations: 50.05 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09562, allocations: 46.61 MB / 373.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003922/0.09957, allocations: 2.342 MB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.1014, allocations: 0.9644 MB / 376.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.1016, allocations: 7.938 kB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.1019, allocations: 39.59 kB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000495/0.1024, allocations: 139.2 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.1028, allocations: 175.7 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004571/0.1032, allocations: 422.8 kB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.1034, allocations: 65.8 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/0.1037, allocations: 183.4 kB / 377.5 MB, free: 13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.1041, allocations: 219.3 kB / 377.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.807e-05/0.1042, allocations: 32 kB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002374/0.1044, allocations: 119.9 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.1046, allocations: 99.66 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.1047, allocations: 163.2 kB / 378.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005423/0.1053, allocations: 454.3 kB / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1053, allocations: 0 / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1053, allocations: 0 / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1053, allocations: 4 kB / 378.5 MB, free: 11.93 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.001137/0.1065, allocations: 0.6389 MB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1065, allocations: 12.03 kB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003084/0.1068, allocations: 52.73 kB / 379.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/0.1073, allocations: 307.8 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.1075, allocations: 88.52 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.1076, allocations: 24.38 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.1083, allocations: 385.3 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.1083, allocations: 4 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.1083, allocations: 12 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1084, allocations: 8 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008116/0.1092, allocations: 417.9 kB / 380.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.1111, allocations: 1.238 MB / 381.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006424/0.1118, allocations: 358.5 kB / 382 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.1121, allocations: 188.8 kB / 382.2 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.1122, allocations: 4.719 kB / 382.2 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.1122, allocations: 38.56 kB / 382.3 MB, free: 7.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.1122, allocations: 0 / 382.3 MB, free: 7.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004514/0.1167, allocations: 1.922 MB / 384.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.1168, allocations: 84.86 kB / 384.3 MB, free: 5.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002769/0.1171, allocations: 246.1 kB / 384.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.1172, allocations: 37.7 kB / 384.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1173, allocations: 144.8 kB / 384.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.1174, allocations: 154.8 kB / 384.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.1175, allocations: 78.12 kB / 384.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1177, allocations: 338.8 kB / 385.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.118, allocations: 168.8 kB / 385.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003817/0.1184, allocations: 233.9 kB / 385.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006452/0.1191, allocations: 339.1 kB / 386 MB, free: 4.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.1191, allocations: 0 / 386 MB, free: 4.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00103/0.1201, allocations: 0.5668 MB / 386.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.1202, allocations: 4 kB / 386.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1202, allocations: 7.984 kB / 386.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007054/0.1209, allocations: 256.7 kB / 386.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.1211, allocations: 51.91 kB / 386.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003695/0.1248, allocations: 2.886 MB / 389.7 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.1251, allocations: 23.98 kB / 389.8 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.1251, allocations: 19.98 kB / 389.8 MB, free: 116 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.0001822/0.1253, allocations: 145.8 kB / 389.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.633e-05/0.1254, allocations: 27.92 kB / 390 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.1255, allocations: 50.97 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1255, allocations: 8 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1255, allocations: 0 / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1256, allocations: 3.938 kB / 390 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.1273, allocations: 1.086 MB / 391.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.1273, allocations: 4 kB / 391.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.1275, allocations: 51.91 kB / 391.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000618/0.1281, allocations: 240.8 kB / 391.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.1282, allocations: 11.98 kB / 391.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003457/0.1316, allocations: 2.839 MB / 394.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1316, allocations: 0 / 394.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.1331, allocations: 0.8274 MB / 395.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.1332, allocations: 140.9 kB / 395.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.423e-05/0.1333, allocations: 15.94 kB / 395.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.1335, allocations: 19.97 kB / 395.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.1337, allocations: 59.91 kB / 395.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.1337, allocations: 16 kB / 395.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.1339, allocations: 180.2 kB / 395.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1339, allocations: 4.062 kB / 395.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005548/0.1345, allocations: 139.9 kB / 395.6 MB, free: 10.01 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.0002154/0.1347, allocations: 139.1 kB / 395.8 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.1359, allocations: 0.637 MB / 396.4 MB, free: 9.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1359, allocations: 0 / 396.4 MB, free: 9.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006743/0.1366, allocations: 433.3 kB / 396.8 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.137, allocations: 40.03 kB / 396.9 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.1383, allocations: 0.69 MB / 397.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.1387, allocations: 0.78 MB / 398.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.1389, allocations: 62.94 kB / 398.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.085e-05/0.139, allocations: 31.42 kB / 398.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.139, allocations: 0 / 398.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of Templates: time 0.01231/0.1513, allocations: 7.202 MB / 405.6 MB, free: 15.91 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)