Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0008537/0.0008538, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006307/0.006307, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.657/1.657, allocations: 205.4 MB / 222.5 MB, free: 5.797 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.0005131/0.0005133, allocations: 15.98 kB / 279.5 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3149, allocations: 47.57 MB / 327 MB, free: 1.617 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.07661/0.3916, allocations: 79.48 MB / 406.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04582/0.4374, allocations: 16.57 MB / 423.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0213/0.4588, allocations: 371 kB / 423.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003216/0.4621, allocations: 0.6684 MB / 424.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008424/0.4705, allocations: 2.706 MB / 426.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003943/0.4745, allocations: 1.35 MB / 428.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01996/0.4945, allocations: 12.69 MB / 440.9 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01824/0.5128, allocations: 11.92 MB / 452.8 MB, free: 5.316 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005835/0.5187, allocations: 2.241 MB / 455 MB, free: 3.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3045/0.8232, allocations: 3.68 MB / 458.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002514/0.8258, allocations: 247.7 kB / 458.9 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00502/0.8308, allocations: 1.515 MB / 460.5 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004623/0.8354, allocations: 3.272 MB / 463.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007375/0.8428, allocations: 3.488 MB / 467.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01676/0.8596, allocations: 12.33 MB / 479.5 MB, free: 9.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.8597, allocations: 0 / 479.5 MB, free: 9.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.8597, allocations: 0 / 479.5 MB, free: 9.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008963/0.8606, allocations: 1.688 kB / 479.5 MB, free: 9.051 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.02311/0.8837, allocations: 7.327 MB / 486.9 MB, free: 4.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.8838, allocations: 14.53 kB / 486.9 MB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05015/0.9339, allocations: 4.961 MB / 491.9 MB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01653/0.9505, allocations: 6.574 MB / 498.4 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003801/0.9509, allocations: 438.2 kB / 498.9 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003006/0.9539, allocations: 0.5825 MB / 499.4 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04186/0.9958, allocations: 17.41 MB / 0.5047 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003696/0.9962, allocations: 77.67 kB / 0.5048 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001556/0.9978, allocations: 270.3 kB / 0.5051 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004852/1.003, allocations: 2.655 MB / 0.5077 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03395/1.037, allocations: 14.85 MB / 0.5222 GB, free: 9.992 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/1.139, allocations: 64.62 MB / 0.5853 GB, free: 8.559 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02427/1.163, allocations: 8.828 MB / 0.5939 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006666/1.17, allocations: 5.059 MB / 0.5988 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02958/1.2, allocations: 18.64 MB / 0.617 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.479e-05/1.2, allocations: 76.06 kB / 0.6171 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=281): time 7.144e-06/1.2, allocations: 0 / 0.6171 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of matching and sorting (n=374): time 0.4943/1.694, allocations: 75.13 MB / 0.6905 GB, free: 179.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/1.694, allocations: 368.6 kB / 0.6908 GB, free: 178.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009318/1.704, allocations: 6.428 MB / 0.6971 GB, free: 172.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001267/1.705, allocations: 83.03 kB / 0.6972 GB, free: 172.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002956/1.708, allocations: 4.761 MB / 0.7018 GB, free: 167.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002134/1.71, allocations: 1.379 MB / 0.7032 GB, free: 166.1 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001706/1.712, allocations: 0.812 MB / 0.704 GB, free: 165.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.084e-05/1.712, allocations: 302.8 kB / 0.7042 GB, free: 165 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007895/1.72, allocations: 5.994 MB / 0.7101 GB, free: 159 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01078/1.731, allocations: 11.02 MB / 0.7209 GB, free: 145.5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01918/1.75, allocations: 17.96 MB / 0.7384 GB, free: 125.1 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/1.75, allocations: 48 kB / 0.7385 GB, free: 125.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05084/1.801, allocations: 23.36 MB / 0.7613 GB, free: 101.6 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002477/1.801, allocations: 79.12 kB / 0.7613 GB, free: 101.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002981/1.801, allocations: 172 kB / 0.7615 GB, free: 101.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02244/1.824, allocations: 7.488 MB / 0.7688 GB, free: 93.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00798/1.832, allocations: 2.191 MB / 0.771 GB, free: 91.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04392/1.876, allocations: 35.63 MB / 0.8058 GB, free: 55.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01109/1.887, allocations: 0.7498 MB / 0.8065 GB, free: 54.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002483/1.89, allocations: 0.5273 MB / 0.807 GB, free: 54.38 MB / 0.4981 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.008269/1.898, allocations: 3.432 MB / 0.8104 GB, free: 50.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/1.9, allocations: 0.5746 MB / 0.8109 GB, free: 50.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03379/1.933, allocations: 16.98 MB / 0.8275 GB, free: 33.31 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.6e-05/1.933, allocations: 52.12 kB / 0.8275 GB, free: 33.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.404e-05/1.934, allocations: 23.94 kB / 0.8276 GB, free: 33.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.249e-05/1.934, allocations: 19.92 kB / 0.8276 GB, free: 33.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3276/2.261, allocations: 32.19 MB / 0.859 GB, free: 194.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.771e-05/2.261, allocations: 7.875 kB / 0.859 GB, free: 194.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003727/2.265, allocations: 0.6044 MB / 0.8596 GB, free: 194.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02228/2.287, allocations: 7.149 MB / 0.8666 GB, free: 193.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001156/2.289, allocations: 66.53 kB / 0.8667 GB, free: 193.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04174/2.33, allocations: 33.9 MB / 0.8998 GB, free: 172.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/2.33, allocations: 7.656 kB / 0.8998 GB, free: 172.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04038/2.371, allocations: 24.63 MB / 0.9238 GB, free: 148.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004939/2.376, allocations: 1.668 MB / 0.9254 GB, free: 146.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002066/2.378, allocations: 65.17 kB / 0.9255 GB, free: 146.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005531/2.383, allocations: 447.5 kB / 0.9259 GB, free: 146.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001322/2.385, allocations: 253.8 kB / 0.9262 GB, free: 146.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005131/2.385, allocations: 92.86 kB / 0.9263 GB, free: 146 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.01035/2.396, allocations: 4.084 MB / 0.9303 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4e-07/2.396, allocations: 2.469 kB / 0.9303 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01557/2.411, allocations: 2.294 MB / 0.9325 GB, free: 139.6 MB / 0.4981 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.002197/2.413, allocations: 275.8 kB / 0.9328 GB, free: 139.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.03149/2.445, allocations: 14.84 MB / 0.9473 GB, free: 124.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/2.445, allocations: 0 / 0.9473 GB, free: 124.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.01066/2.456, allocations: 6.709 MB / 0.9538 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01057/2.466, allocations: 0.8386 MB / 0.9546 GB, free: 117.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03904/2.505, allocations: 23.65 MB / 0.9777 GB, free: 93.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01173/2.517, allocations: 5.291 MB / 0.9829 GB, free: 88.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.01398/2.531, allocations: 3.016 MB / 0.9858 GB, free: 85.14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002918/2.534, allocations: 387.3 kB / 0.9862 GB, free: 84.76 MB / 0.4981 GB Notification: Performance of SimCode: time 1.293e-06/2.534, allocations: 0 / 0.9862 GB, free: 84.76 MB / 0.4981 GB Notification: Performance of Templates: time 0.3935/2.928, allocations: 106.2 MB / 1.09 GB, free: 175.8 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)