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.007/0.007, allocations: 99.69 kB / 15.73 MB, free: 6.062 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.001317/0.001317, allocations: 193.5 kB / 16.67 MB, free: 5.977 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.527/1.527, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.001171/0.001171, allocations: 51.39 kB / 326.5 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003457/0.1065, allocations: 2.412 MB / 375.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.1082, allocations: 1.003 MB / 376.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.1084, allocations: 8 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002232/0.1086, allocations: 55.52 kB / 376.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.1091, allocations: 159 kB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.1095, allocations: 175.7 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004312/0.1099, allocations: 474.5 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.1101, allocations: 100.8 kB / 377.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.1104, allocations: 211.3 kB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002937/0.1107, allocations: 243.2 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.039e-05/0.1107, allocations: 36 kB / 378 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.111, allocations: 127.8 kB / 378.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.1111, allocations: 107.7 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.1113, allocations: 187.1 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005295/0.1118, allocations: 498.5 kB / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1118, allocations: 0 / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1119, allocations: 4 kB / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.1119, allocations: 3.984 kB / 378.9 MB, free: 11.52 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.001273/0.1132, allocations: 0.6744 MB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1132, allocations: 8.031 kB / 379.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003289/0.1135, allocations: 48.55 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005248/0.1141, allocations: 323.3 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.1142, allocations: 88.61 kB / 380 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.167e-05/0.1143, allocations: 32.38 kB / 380.1 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007732/0.1151, allocations: 421 kB / 380.5 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.1151, allocations: 7.906 kB / 380.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.1151, allocations: 8 kB / 380.5 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1152, allocations: 8 kB / 380.5 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000966/0.1161, allocations: 478.2 kB / 381 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.1178, allocations: 0.958 MB / 381.9 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/0.1186, allocations: 425.6 kB / 382.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004526/0.1191, allocations: 230 kB / 382.6 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.1192, allocations: 12.42 kB / 382.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.1192, allocations: 38.98 kB / 382.6 MB, free: 7.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.623e-06/0.1192, allocations: 0 / 382.6 MB, free: 7.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005249/0.1245, allocations: 2.167 MB / 384.8 MB, free: 5.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/0.1246, allocations: 85.67 kB / 384.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.1249, allocations: 259.1 kB / 385.1 MB, free: 4.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.555e-05/0.1249, allocations: 37.7 kB / 385.2 MB, free: 4.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.574e-05/0.125, allocations: 137.2 kB / 385.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.1252, allocations: 181.3 kB / 385.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.1253, allocations: 90.23 kB / 385.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1254, allocations: 342.8 kB / 385.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/0.1259, allocations: 193 kB / 386.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004794/0.1264, allocations: 252.6 kB / 386.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008199/0.1272, allocations: 388.4 kB / 386.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1272, allocations: 0 / 386.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001265/0.1285, allocations: 0.6173 MB / 387.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.1285, allocations: 11.94 kB / 387.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1285, allocations: 3.938 kB / 387.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007664/0.1293, allocations: 249.9 kB / 387.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.1296, allocations: 63.89 kB / 387.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003974/0.1336, allocations: 2.936 MB / 390.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/0.134, allocations: 32.06 kB / 390.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-05/0.1341, allocations: 20 kB / 390.6 MB, free: 15.26 MB / 334.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.0002146/0.1343, allocations: 153.8 kB / 390.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.279e-05/0.1344, allocations: 35.56 kB / 390.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.1345, allocations: 55.3 kB / 390.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.1345, allocations: 4 kB / 390.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1345, allocations: 0 / 390.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.1346, allocations: 0 / 390.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002229/0.1368, allocations: 1.27 MB / 392.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1368, allocations: 0 / 392.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.1372, allocations: 63.89 kB / 392.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006746/0.1378, allocations: 244.6 kB / 392.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.272e-05/0.1379, allocations: 19.98 kB / 392.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00381/0.1417, allocations: 2.85 MB / 395.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1417, allocations: 4.031 kB / 395.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.1436, allocations: 0.9506 MB / 396.3 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.1438, allocations: 148.7 kB / 396.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.1439, allocations: 12 kB / 396.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/0.1442, allocations: 31.91 kB / 396.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.1444, allocations: 68.28 kB / 396.5 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/0.1444, allocations: 15.98 kB / 396.6 MB, free: 9.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002412/0.1447, allocations: 204.7 kB / 396.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1447, allocations: 0 / 396.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006539/0.1453, allocations: 156 kB / 396.9 MB, free: 8.746 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.0002596/0.1456, allocations: 127.2 kB / 397 MB, free: 8.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.1471, allocations: 0.7149 MB / 397.7 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1471, allocations: 0 / 397.7 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008349/0.148, allocations: 483.6 kB / 398.2 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.1484, allocations: 40.66 kB / 398.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.15, allocations: 0.7968 MB / 399.1 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.1504, allocations: 0.7966 MB / 399.8 MB, free: 5.707 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.1506, allocations: 66.94 kB / 399.9 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.1507, allocations: 31.42 kB / 399.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.1507, allocations: 0 / 399.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of Templates: time 0.01334/0.1641, allocations: 7.865 MB / 407.8 MB, free: 13.73 MB / 350.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)