Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005234/0.005234, allocations: 100.1 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.001087/0.001087, allocations: 197.6 kB / 16.68 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.528/1.528, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001154/0.001154, allocations: 51.39 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08758/0.08875, allocations: 46.64 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003857/0.09266, allocations: 2.716 MB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.09467, allocations: 1.132 MB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001795/0.09486, allocations: 4 kB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.09518, allocations: 67.38 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005989/0.09579, allocations: 194.8 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004356/0.09624, allocations: 243.6 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005822/0.09683, allocations: 0.6429 MB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.09711, allocations: 135.3 kB / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.09747, allocations: 291.1 kB / 378.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004025/0.09788, allocations: 339 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.627e-05/0.09797, allocations: 52 kB / 379 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002351/0.09821, allocations: 135.9 kB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.09841, allocations: 163.5 kB / 379.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.09866, allocations: 238.9 kB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006435/0.09931, allocations: 0.6503 MB / 380.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.09932, allocations: 0 / 380.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.09933, allocations: 0 / 380.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.09934, allocations: 0 / 380.1 MB, free: 10.31 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001571/0.1009, allocations: 0.7915 MB / 380.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.101, allocations: 11.89 kB / 380.9 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.1013, allocations: 76.28 kB / 381 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006684/0.102, allocations: 366.4 kB / 381.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.1021, allocations: 96.95 kB / 381.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-05/0.1022, allocations: 44.28 kB / 381.5 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.1033, allocations: 0.5606 MB / 382.1 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.1033, allocations: 4 kB / 382.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.629e-05/0.1034, allocations: 20 kB / 382.1 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.1034, allocations: 8 kB / 382.1 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.1047, allocations: 0.6324 MB / 382.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.1071, allocations: 1.275 MB / 384 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.1082, allocations: 0.56 MB / 384.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006321/0.1089, allocations: 322.4 kB / 384.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.891e-05/0.109, allocations: 12.5 kB / 384.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.109, allocations: 39.12 kB / 384.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.455e-06/0.109, allocations: 0 / 384.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006882/0.1159, allocations: 2.871 MB / 387.8 MB, free: 2.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.819e-05/0.116, allocations: 89.61 kB / 387.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004864/0.1165, allocations: 335 kB / 388.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.307e-05/0.1166, allocations: 45.7 kB / 388.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1168, allocations: 161.5 kB / 388.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.1169, allocations: 224.9 kB / 388.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.1171, allocations: 122.2 kB / 388.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1173, allocations: 346.8 kB / 389.1 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006322/0.1179, allocations: 289.2 kB / 389.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006122/0.1185, allocations: 358.5 kB / 389.7 MB, free: 328 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.1196, allocations: 0.5226 MB / 390.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1196, allocations: 0 / 390.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001715/0.1213, allocations: 0.8812 MB / 391.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1214, allocations: 9.031 kB / 391.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.1214, allocations: 0 / 391.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.1224, allocations: 473.6 kB / 391.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/0.1228, allocations: 91.81 kB / 391.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.1241, allocations: 1.071 MB / 392.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.1246, allocations: 68.02 kB / 392.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.1247, allocations: 28.05 kB / 392.9 MB, free: 13.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002519/0.1249, allocations: 177.7 kB / 393 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.125, allocations: 43.44 kB / 393.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001621/0.1252, allocations: 67.7 kB / 393.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.1252, allocations: 4 kB / 393.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.1252, allocations: 0 / 393.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1252, allocations: 7.984 kB / 393.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.1285, allocations: 1.76 MB / 394.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1285, allocations: 0 / 394.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.1289, allocations: 71.89 kB / 395 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009478/0.1298, allocations: 460.4 kB / 395.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.1299, allocations: 31.97 kB / 395.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.1311, allocations: 1.032 MB / 396.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1311, allocations: 4.031 kB / 396.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/0.1337, allocations: 1.306 MB / 397.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.134, allocations: 172.5 kB / 398 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.188e-05/0.1341, allocations: 16 kB / 398 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004561/0.1345, allocations: 56 kB / 398 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.1347, allocations: 84.42 kB / 398.1 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.897e-05/0.1348, allocations: 31.91 kB / 398.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002855/0.1351, allocations: 241.9 kB / 398.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1351, allocations: 0 / 398.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000546/0.1356, allocations: 148 kB / 398.5 MB, free: 7.312 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002544/0.1359, allocations: 151.1 kB / 398.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.1375, allocations: 0.7118 MB / 399.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1375, allocations: 0 / 399.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008207/0.1383, allocations: 388 kB / 399.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004987/0.1388, allocations: 60.94 kB / 399.8 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.1414, allocations: 1.103 MB / 400.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/0.1418, allocations: 0.8251 MB / 401.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002084/0.142, allocations: 63.34 kB / 401.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.1421, allocations: 47.41 kB / 401.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1422, allocations: 0 / 401.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of Templates: time 0.01563/0.1578, allocations: 10.05 MB / 411.9 MB, free: 9.848 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)