Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007721/0.007721, allocations: 100.9 kB / 15.73 MB, free: 6.035 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.001854/0.001854, allocations: 197.9 kB / 16.68 MB, free: 5.953 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.49/1.49, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001336/0.001336, allocations: 53.58 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.104, allocations: 46.61 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02269/0.1267, allocations: 18.57 MB / 391.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.1411, allocations: 6.166 MB / 397.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00417/0.1453, allocations: 143.6 kB / 398 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01125/0.1567, allocations: 6.274 MB / 404.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008483/0.1652, allocations: 2.93 MB / 407.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005445/0.1707, allocations: 2.284 MB / 409.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0141/0.1848, allocations: 8.839 MB / 418.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01121/0.196, allocations: 8.419 MB / 426.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007058/0.2031, allocations: 3.229 MB / 430 MB, free: 8.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007753/0.2109, allocations: 4.191 MB / 434.2 MB, free: 3.992 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002771/0.2138, allocations: 0.7148 MB / 434.9 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005568/0.2193, allocations: 1.908 MB / 436.8 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005604/0.225, allocations: 3.882 MB / 440.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008259/0.2333, allocations: 4.146 MB / 444.9 MB, free: 9.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4461/0.6794, allocations: 13.24 MB / 458.1 MB, free: 28.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/0.6795, allocations: 0 / 458.1 MB, free: 28.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.087e-06/0.6795, allocations: 1.188 kB / 458.1 MB, free: 28.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006465/0.6801, allocations: 0 / 458.1 MB, free: 28.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03062/0.7108, allocations: 8.941 MB / 467 MB, free: 25.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.7108, allocations: 10.38 kB / 467.1 MB, free: 25.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04221/0.7531, allocations: 4.843 MB / 471.9 MB, free: 24.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02004/0.7731, allocations: 6.706 MB / 478.6 MB, free: 23.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004758/0.7736, allocations: 434.3 kB / 479 MB, free: 23.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004869/0.7785, allocations: 0.5878 MB / 479.6 MB, free: 23.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03611/0.8146, allocations: 17.06 MB / 496.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002959/0.815, allocations: 79.08 kB / 496.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001012/0.816, allocations: 272.1 kB / 497 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003764/0.8198, allocations: 2.655 MB / 499.7 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02844/0.8482, allocations: 14.79 MB / 0.5024 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09689/0.9451, allocations: 64.35 MB / 0.5652 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02312/0.9683, allocations: 8.77 MB / 0.5738 GB, free: 4.629 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00718/0.9755, allocations: 5.065 MB / 0.5788 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03409/1.01, allocations: 18.64 MB / 0.597 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.047e-05/1.01, allocations: 66.34 kB / 0.597 GB, free: 12.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 8.807e-06/1.01, allocations: 0 / 0.597 GB, free: 12.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.5146/1.524, allocations: 74.07 MB / 0.6694 GB, free: 189.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/1.525, allocations: 385.1 kB / 0.6697 GB, free: 189.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008355/1.533, allocations: 6.421 MB / 0.676 GB, free: 184.9 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001263/1.534, allocations: 81.7 kB / 0.6761 GB, free: 184.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002491/1.537, allocations: 4.759 MB / 0.6807 GB, free: 180 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00189/1.539, allocations: 1.374 MB / 0.6821 GB, free: 178.7 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003044/1.542, allocations: 1.978 MB / 0.684 GB, free: 176.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 7.297e-05/1.542, allocations: 301.1 kB / 0.6843 GB, free: 176.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006773/1.549, allocations: 5.992 MB / 0.6901 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008847/1.557, allocations: 11.02 MB / 0.7009 GB, free: 156.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01781/1.575, allocations: 17.97 MB / 0.7184 GB, free: 136.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001326/1.575, allocations: 51.94 kB / 0.7185 GB, free: 136.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04145/1.617, allocations: 23.34 MB / 0.7413 GB, free: 113.1 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.556e-05/1.617, allocations: 80 kB / 0.7414 GB, free: 113 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/1.617, allocations: 172 kB / 0.7415 GB, free: 112.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01984/1.637, allocations: 7.442 MB / 0.7488 GB, free: 105.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007513/1.645, allocations: 2.197 MB / 0.7509 GB, free: 103.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04226/1.687, allocations: 38.1 MB / 0.7881 GB, free: 64.68 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/1.697, allocations: 0.7371 MB / 0.7889 GB, free: 63.94 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002684/1.7, allocations: 0.5273 MB / 0.7894 GB, free: 63.41 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.008603/1.708, allocations: 3.441 MB / 0.7927 GB, free: 59.96 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001578/1.71, allocations: 0.5785 MB / 0.7933 GB, free: 59.37 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02931/1.739, allocations: 16.95 MB / 0.8099 GB, free: 42.35 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.441e-05/1.739, allocations: 59.98 kB / 0.8099 GB, free: 42.29 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-05/1.74, allocations: 16 kB / 0.8099 GB, free: 42.27 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-05/1.74, allocations: 15.94 kB / 0.8099 GB, free: 42.26 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.305/2.045, allocations: 32.05 MB / 0.8412 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.567e-05/2.045, allocations: 4.781 kB / 0.8412 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003474/2.048, allocations: 0.6016 MB / 0.8418 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01972/2.068, allocations: 7.021 MB / 0.8487 GB, free: 177.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00117/2.069, allocations: 64.48 kB / 0.8488 GB, free: 177.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04184/2.111, allocations: 36.29 MB / 0.8842 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/2.111, allocations: 7.062 kB / 0.8842 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03724/2.148, allocations: 24.61 MB / 0.9082 GB, free: 129.7 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004825/2.153, allocations: 1.66 MB / 0.9098 GB, free: 128.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00215/2.155, allocations: 66.59 kB / 0.9099 GB, free: 128.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005013/2.16, allocations: 443.3 kB / 0.9103 GB, free: 127.8 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001242/2.162, allocations: 255.3 kB / 0.9106 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003849/2.162, allocations: 92 kB / 0.9107 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006467/2.169, allocations: 4.08 MB / 0.9147 GB, free: 123.4 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/2.169, allocations: 0 / 0.9147 GB, free: 123.4 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01318/2.182, allocations: 2.299 MB / 0.9169 GB, free: 121.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0016/2.183, allocations: 279.1 kB / 0.9172 GB, free: 120.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02181/2.205, allocations: 14.89 MB / 0.9317 GB, free: 106.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/2.205, allocations: 0 / 0.9317 GB, free: 106.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.01071/2.216, allocations: 6.699 MB / 0.9382 GB, free: 99.35 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008626/2.225, allocations: 0.9009 MB / 0.9391 GB, free: 98.48 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0379/2.263, allocations: 19.98 MB / 0.9586 GB, free: 78.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007746/2.27, allocations: 5.294 MB / 0.9638 GB, free: 73.18 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007007/2.277, allocations: 3.02 MB / 0.9668 GB, free: 70.15 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001822/2.279, allocations: 383.4 kB / 0.9671 GB, free: 69.78 MB / 0.5138 GB Notification: Performance of SimCode: time 8.11e-07/2.279, allocations: 4 kB / 0.9671 GB, free: 69.77 MB / 0.5138 GB Notification: Performance of Templates: time 0.4356/2.715, allocations: 108.8 MB / 1.073 GB, free: 140.4 MB / 0.5138 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)