Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001571/0.001572, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.4 MB / 222.1 MB, free: 5.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.0004265/0.0004266, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.226, allocations: 47.6 MB / 326.5 MB, free: 1.633 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.0913/0.3173, allocations: 93.9 MB / 420.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04718/0.3646, allocations: 19.12 MB / 439.5 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01843/0.3831, allocations: 474.7 kB / 440 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01552/0.3986, allocations: 4.907 MB / 444.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2516/0.6503, allocations: 14.58 MB / 459.5 MB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006712/0.657, allocations: 1.409 MB / 460.9 MB, free: 5.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1169/0.774, allocations: 98.22 MB / 0.546 GB, free: 2.445 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0141/0.7881, allocations: 8.923 MB / 0.5547 GB, free: 12.12 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006277/0.7945, allocations: 2.939 MB / 0.5576 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007196/0.8017, allocations: 4.463 MB / 0.5619 GB, free: 6.852 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001839/0.8036, allocations: 276 kB / 0.5622 GB, free: 6.582 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004198/0.8078, allocations: 1.121 MB / 0.5633 GB, free: 5.656 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005109/0.8129, allocations: 3.712 MB / 0.5669 GB, free: 2.891 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002745/0.8157, allocations: 1.565 MB / 0.5684 GB, free: 2.316 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.8284, allocations: 10.59 MB / 0.5788 GB, free: 9.113 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.8285, allocations: 0 / 0.5788 GB, free: 9.113 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.8285, allocations: 0 / 0.5788 GB, free: 9.113 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003982/0.8289, allocations: 4 kB / 0.5788 GB, free: 9.109 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.01824/0.8471, allocations: 8.124 MB / 0.5867 GB, free: 1.586 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.8472, allocations: 15.5 kB / 0.5867 GB, free: 1.574 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03696/0.8842, allocations: 5.36 MB / 0.592 GB, free: 12.4 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01787/0.9021, allocations: 8.042 MB / 0.5998 GB, free: 6.605 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003454/0.9025, allocations: 424.1 kB / 0.6002 GB, free: 6.375 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002023/0.9045, allocations: 0.5816 MB / 0.6008 GB, free: 5.988 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03186/0.9364, allocations: 16.58 MB / 0.617 GB, free: 9.062 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003244/0.9368, allocations: 101.8 kB / 0.6171 GB, free: 9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009701/0.9377, allocations: 265.4 kB / 0.6173 GB, free: 8.926 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004261/0.942, allocations: 2.764 MB / 0.62 GB, free: 6.668 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3648/1.307, allocations: 13.63 MB / 0.6333 GB, free: 208.7 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07682/1.384, allocations: 68.02 MB / 0.6998 GB, free: 151.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01739/1.401, allocations: 7.919 MB / 0.7075 GB, free: 143.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005083/1.406, allocations: 4.502 MB / 0.7119 GB, free: 139.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02019/1.426, allocations: 12.42 MB / 0.724 GB, free: 126.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.906e-05/1.427, allocations: 68.55 kB / 0.7241 GB, free: 126.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 7.685e-06/1.427, allocations: 0 / 0.7241 GB, free: 126.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=340): time 0.1469/1.574, allocations: 50.12 MB / 0.773 GB, free: 76.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/1.574, allocations: 406.1 kB / 0.7734 GB, free: 76.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009662/1.583, allocations: 7.14 MB / 0.7804 GB, free: 69.14 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009153/1.584, allocations: 77.7 kB / 0.7805 GB, free: 69.06 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002711/1.587, allocations: 5.029 MB / 0.7854 GB, free: 64.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001473/1.589, allocations: 1.26 MB / 0.7866 GB, free: 62.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005189/1.589, allocations: 180.6 kB / 0.7868 GB, free: 62.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003352/1.589, allocations: 0.6904 MB / 0.7875 GB, free: 61.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005425/1.595, allocations: 4.511 MB / 0.7919 GB, free: 57.39 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007538/1.602, allocations: 9.232 MB / 0.8009 GB, free: 45.87 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007833/1.61, allocations: 6.27 MB / 0.807 GB, free: 39.58 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.798e-05/1.61, allocations: 44 kB / 0.807 GB, free: 39.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03388/1.644, allocations: 19.7 MB / 0.8263 GB, free: 19.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.211e-05/1.644, allocations: 76 kB / 0.8264 GB, free: 19.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/1.645, allocations: 160 kB / 0.8265 GB, free: 19.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01691/1.661, allocations: 7.067 MB / 0.8334 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005564/1.667, allocations: 1.93 MB / 0.8353 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2746/1.942, allocations: 33.21 MB / 0.8677 GB, free: 179.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/1.952, allocations: 0.5897 MB / 0.8683 GB, free: 179.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002364/1.954, allocations: 0.4897 MB / 0.8688 GB, free: 179.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1049): * Single equations (assignments): 1043 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.008533/1.963, allocations: 3.485 MB / 0.8722 GB, free: 178.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001792/1.965, allocations: 0.6331 MB / 0.8728 GB, free: 178.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02567/1.99, allocations: 13.3 MB / 0.8858 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.71e-05/1.991, allocations: 35.12 kB / 0.8858 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.714e-05/1.991, allocations: 19.38 kB / 0.8858 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.018e-05/1.991, allocations: 18.75 kB / 0.8859 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04682/2.038, allocations: 26.72 MB / 0.912 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.963e-05/2.038, allocations: 8 kB / 0.912 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001932/2.04, allocations: 427.3 kB / 0.9124 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01755/2.057, allocations: 6.682 MB / 0.9189 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/2.058, allocations: 61.88 kB / 0.919 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03602/2.094, allocations: 31.95 MB / 0.9502 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.317e-06/2.094, allocations: 11.94 kB / 0.9502 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02907/2.123, allocations: 18.72 MB / 0.9684 GB, free: 90.26 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004403/2.128, allocations: 1.399 MB / 0.9698 GB, free: 88.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001692/2.13, allocations: 64.12 kB / 0.9699 GB, free: 88.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003372/2.133, allocations: 320.9 kB / 0.9702 GB, free: 88.47 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008307/2.134, allocations: 242.3 kB / 0.9704 GB, free: 88.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002666/2.134, allocations: 88 kB / 0.9705 GB, free: 88.15 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007085/2.141, allocations: 4.564 MB / 0.9749 GB, free: 83.61 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/2.141, allocations: 0 / 0.9749 GB, free: 83.61 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01022/2.151, allocations: 2.147 MB / 0.977 GB, free: 81.47 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 209 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008028/2.152, allocations: 212.7 kB / 0.9772 GB, free: 81.27 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01708/2.169, allocations: 11.51 MB / 0.9885 GB, free: 69.78 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.497e-05/2.169, allocations: 4.188 kB / 0.9885 GB, free: 69.78 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007611/2.177, allocations: 4.994 MB / 0.9934 GB, free: 64.74 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008059/2.185, allocations: 0.9421 MB / 0.9943 GB, free: 63.81 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03886/2.224, allocations: 22.53 MB / 1.016 GB, free: 41.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008211/2.232, allocations: 5.556 MB / 1.022 GB, free: 35.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007177/2.24, allocations: 2.613 MB / 1.024 GB, free: 33.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/2.241, allocations: 395.4 kB / 1.025 GB, free: 32.78 MB / 494.1 MB Notification: Performance of SimCode: time 1.773e-06/2.241, allocations: 0 / 1.025 GB, free: 32.78 MB / 494.1 MB Notification: Performance of Templates: time 0.3736/2.615, allocations: 91.43 MB / 1.114 GB, free: 124.6 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)