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.009259/0.009259, allocations: 100 kB / 15.73 MB, free: 6.051 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.002149/0.002149, allocations: 198.9 kB / 16.68 MB, free: 5.965 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.45/1.45, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.001152/0.001152, allocations: 45.75 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1084, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01958/0.128, allocations: 18.57 MB / 391.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01625/0.1443, allocations: 6.154 MB / 397.9 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005542/0.1499, allocations: 143.6 kB / 398 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01332/0.1633, allocations: 6.277 MB / 404.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01046/0.1738, allocations: 2.93 MB / 407.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006269/0.1801, allocations: 2.288 MB / 409.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.014/0.1941, allocations: 8.835 MB / 418.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01408/0.2082, allocations: 8.423 MB / 426.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007447/0.2158, allocations: 3.229 MB / 430 MB, free: 8.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007514/0.2233, allocations: 4.195 MB / 434.2 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003008/0.2264, allocations: 0.7148 MB / 434.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005702/0.2321, allocations: 1.9 MB / 436.8 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006346/0.2385, allocations: 3.874 MB / 440.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00987/0.2484, allocations: 4.162 MB / 444.9 MB, free: 9.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3236/0.572, allocations: 13.24 MB / 458.1 MB, free: 28.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.572, allocations: 0 / 458.1 MB, free: 28.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5721, allocations: 1.469 kB / 458.1 MB, free: 28.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000611/0.5727, allocations: 1.062 kB / 458.1 MB, free: 28.18 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.04157/0.6143, allocations: 8.938 MB / 467 MB, free: 25.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.6143, allocations: 10.06 kB / 467.1 MB, free: 25.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04393/0.6583, allocations: 4.846 MB / 471.9 MB, free: 24.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0189/0.6772, allocations: 6.706 MB / 478.6 MB, free: 23.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004169/0.6777, allocations: 433.9 kB / 479 MB, free: 23.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003921/0.6816, allocations: 0.5907 MB / 479.6 MB, free: 23.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03946/0.7211, allocations: 17.06 MB / 496.7 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004052/0.7215, allocations: 73.34 kB / 496.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00263/0.7242, allocations: 266.3 kB / 497 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004215/0.7284, allocations: 2.663 MB / 499.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03449/0.7629, allocations: 14.79 MB / 0.5024 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.098/0.861, allocations: 64.35 MB / 0.5652 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02405/0.8851, allocations: 8.779 MB / 0.5738 GB, free: 4.559 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007928/0.8931, allocations: 5.065 MB / 0.5788 GB, free: 15.49 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03814/0.9312, allocations: 18.64 MB / 0.597 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.683e-05/0.9314, allocations: 60.56 kB / 0.597 GB, free: 12.69 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 8.116e-06/0.9314, allocations: 0 / 0.597 GB, free: 12.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.5203/1.452, allocations: 74.08 MB / 0.6694 GB, free: 189.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001537/1.452, allocations: 375.3 kB / 0.6697 GB, free: 189 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008887/1.461, allocations: 6.429 MB / 0.676 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001588/1.462, allocations: 84 kB / 0.6761 GB, free: 184.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003142/1.466, allocations: 4.756 MB / 0.6807 GB, free: 179.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002756/1.468, allocations: 1.379 MB / 0.6821 GB, free: 178.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003131/1.472, allocations: 1.97 MB / 0.684 GB, free: 176.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.317e-05/1.472, allocations: 305.1 kB / 0.6843 GB, free: 176.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007306/1.479, allocations: 5.992 MB / 0.6901 GB, free: 170.2 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01067/1.49, allocations: 11.02 MB / 0.7009 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01935/1.509, allocations: 17.97 MB / 0.7184 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002877/1.509, allocations: 55.94 kB / 0.7185 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04746/1.557, allocations: 23.33 MB / 0.7413 GB, free: 112.9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002327/1.557, allocations: 83.98 kB / 0.7414 GB, free: 112.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003009/1.557, allocations: 172.9 kB / 0.7415 GB, free: 112.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02124/1.579, allocations: 7.446 MB / 0.7488 GB, free: 105.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007422/1.586, allocations: 2.187 MB / 0.7509 GB, free: 103 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04981/1.636, allocations: 38.11 MB / 0.7881 GB, free: 64.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01165/1.648, allocations: 0.7396 MB / 0.7889 GB, free: 63.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002369/1.65, allocations: 0.5312 MB / 0.7894 GB, free: 63.25 MB / 0.5137 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.008388/1.659, allocations: 3.434 MB / 0.7927 GB, free: 59.81 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002486/1.661, allocations: 0.5746 MB / 0.7933 GB, free: 59.23 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03436/1.695, allocations: 16.96 MB / 0.8099 GB, free: 42.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001097/1.696, allocations: 55.98 kB / 0.8099 GB, free: 42.14 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-05/1.696, allocations: 16 kB / 0.8099 GB, free: 42.12 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00011/1.696, allocations: 19.94 kB / 0.81 GB, free: 42.11 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.359/2.055, allocations: 32.03 MB / 0.8412 GB, free: 178.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.696e-05/2.055, allocations: 0 / 0.8412 GB, free: 178.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003106/2.058, allocations: 0.6063 MB / 0.8418 GB, free: 178.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01866/2.077, allocations: 7.018 MB / 0.8487 GB, free: 177.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001011/2.078, allocations: 66.11 kB / 0.8487 GB, free: 177.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04153/2.119, allocations: 36.29 MB / 0.8842 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/2.119, allocations: 4 kB / 0.8842 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03801/2.157, allocations: 24.61 MB / 0.9082 GB, free: 129.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004477/2.162, allocations: 1.663 MB / 0.9098 GB, free: 128.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001679/2.164, allocations: 65.58 kB / 0.9099 GB, free: 128.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0044/2.168, allocations: 447.3 kB / 0.9103 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/2.169, allocations: 247.6 kB / 0.9106 GB, free: 127.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003775/2.169, allocations: 93.33 kB / 0.9107 GB, free: 127.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005036/2.174, allocations: 4.08 MB / 0.9146 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/2.175, allocations: 4 kB / 0.9146 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01084/2.185, allocations: 2.303 MB / 0.9169 GB, free: 121 MB / 0.5137 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.0009959/2.186, allocations: 274.6 kB / 0.9172 GB, free: 120.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02137/2.208, allocations: 14.89 MB / 0.9317 GB, free: 105.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.301e-05/2.208, allocations: 3.938 kB / 0.9317 GB, free: 105.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01027/2.218, allocations: 6.697 MB / 0.9382 GB, free: 99.18 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007248/2.225, allocations: 0.8993 MB / 0.9391 GB, free: 98.32 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03206/2.257, allocations: 19.98 MB / 0.9586 GB, free: 78.34 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00676/2.264, allocations: 5.296 MB / 0.9638 GB, free: 73 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007305/2.272, allocations: 3.02 MB / 0.9668 GB, free: 69.98 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0018/2.273, allocations: 387.4 kB / 0.9671 GB, free: 69.6 MB / 0.5137 GB Notification: Performance of SimCode: time 9.22e-07/2.273, allocations: 0 / 0.9671 GB, free: 69.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.4874/2.761, allocations: 108.8 MB / 1.073 GB, free: 140.2 MB / 0.5137 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)