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.01018/0.01018, allocations: 101 kB / 15.73 MB, free: 6.047 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.002053/0.002054, allocations: 186.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.443/1.443, allocations: 205.1 MB / 222.5 MB, free: 4.398 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.001783/0.001783, allocations: 49.7 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1173, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01871/0.1361, allocations: 18.57 MB / 391.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0144/0.1506, allocations: 6.162 MB / 397.9 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004703/0.1553, allocations: 143.6 kB / 398 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01216/0.1676, allocations: 6.266 MB / 404.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01066/0.1783, allocations: 2.86 MB / 407.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005757/0.1841, allocations: 2.281 MB / 409.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0142/0.1983, allocations: 8.839 MB / 418.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0115/0.2098, allocations: 8.415 MB / 426.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006898/0.2168, allocations: 3.206 MB / 429.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007407/0.2242, allocations: 4.191 MB / 434.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00303/0.2273, allocations: 0.7148 MB / 434.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005314/0.2327, allocations: 1.892 MB / 436.7 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006117/0.2388, allocations: 3.835 MB / 440.5 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009913/0.2488, allocations: 4.158 MB / 444.7 MB, free: 9.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3292/0.578, allocations: 13.24 MB / 457.9 MB, free: 28.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-05/0.5781, allocations: 0.6875 kB / 457.9 MB, free: 28.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.808e-06/0.5782, allocations: 0 / 457.9 MB, free: 28.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008861/0.5791, allocations: 0.75 kB / 457.9 MB, free: 28.03 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.04149/0.6206, allocations: 8.939 MB / 466.9 MB, free: 25.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.6206, allocations: 8.844 kB / 466.9 MB, free: 25.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05462/0.6753, allocations: 4.849 MB / 471.7 MB, free: 24.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02231/0.6976, allocations: 6.703 MB / 478.4 MB, free: 23.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007216/0.6984, allocations: 435 kB / 478.9 MB, free: 23.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005948/0.7044, allocations: 0.583 MB / 479.4 MB, free: 23.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04891/0.7533, allocations: 17.06 MB / 496.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004955/0.7539, allocations: 84.73 kB / 496.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003785/0.7577, allocations: 269.9 kB / 496.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004786/0.7625, allocations: 2.652 MB / 499.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03377/0.7963, allocations: 14.78 MB / 0.5022 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1084/0.9047, allocations: 64.35 MB / 0.5651 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02699/0.9317, allocations: 8.77 MB / 0.5736 GB, free: 4.633 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007961/0.9398, allocations: 5.069 MB / 0.5786 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03437/0.9742, allocations: 18.65 MB / 0.5968 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/0.9743, allocations: 60.56 kB / 0.5969 GB, free: 12.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 6.532e-06/0.9743, allocations: 0 / 0.5969 GB, free: 12.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.5478/1.522, allocations: 74.07 MB / 0.6692 GB, free: 189.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/1.522, allocations: 379.2 kB / 0.6696 GB, free: 189.1 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008561/1.531, allocations: 6.417 MB / 0.6758 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001358/1.532, allocations: 85.7 kB / 0.6759 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002673/1.535, allocations: 4.764 MB / 0.6806 GB, free: 180 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002147/1.537, allocations: 1.374 MB / 0.6819 GB, free: 178.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003174/1.54, allocations: 1.974 MB / 0.6838 GB, free: 176.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.057e-05/1.54, allocations: 301.1 kB / 0.6841 GB, free: 176.4 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006887/1.547, allocations: 5.995 MB / 0.69 GB, free: 170.4 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01037/1.558, allocations: 11.02 MB / 0.7007 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0186/1.576, allocations: 17.97 MB / 0.7183 GB, free: 136.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001656/1.577, allocations: 55.94 kB / 0.7183 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04753/1.624, allocations: 23.33 MB / 0.7411 GB, free: 113.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/1.624, allocations: 84.59 kB / 0.7412 GB, free: 113 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001528/1.624, allocations: 172.9 kB / 0.7414 GB, free: 112.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02163/1.646, allocations: 7.443 MB / 0.7486 GB, free: 105.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007826/1.654, allocations: 2.187 MB / 0.7508 GB, free: 103.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04349/1.697, allocations: 38.11 MB / 0.788 GB, free: 64.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009719/1.707, allocations: 0.7409 MB / 0.7887 GB, free: 63.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00211/1.709, allocations: 0.5311 MB / 0.7892 GB, free: 63.39 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.007739/1.717, allocations: 3.438 MB / 0.7926 GB, free: 59.94 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001799/1.719, allocations: 0.5746 MB / 0.7931 GB, free: 59.36 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03196/1.751, allocations: 16.96 MB / 0.8097 GB, free: 42.32 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.838e-05/1.751, allocations: 44 kB / 0.8097 GB, free: 42.28 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.374e-05/1.751, allocations: 22.72 kB / 0.8098 GB, free: 42.26 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.429e-05/1.751, allocations: 19.92 kB / 0.8098 GB, free: 42.24 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3426/2.094, allocations: 32.04 MB / 0.8411 GB, free: 178.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.631e-05/2.094, allocations: 2.875 kB / 0.8411 GB, free: 178.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003551/2.097, allocations: 0.6117 MB / 0.8417 GB, free: 178.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02128/2.119, allocations: 7.011 MB / 0.8485 GB, free: 177.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001328/2.12, allocations: 63.34 kB / 0.8486 GB, free: 177.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04514/2.165, allocations: 36.29 MB / 0.884 GB, free: 154.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/2.165, allocations: 7.219 kB / 0.884 GB, free: 154.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04115/2.206, allocations: 24.61 MB / 0.9081 GB, free: 129.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006547/2.213, allocations: 1.661 MB / 0.9097 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002502/2.216, allocations: 65.69 kB / 0.9097 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006096/2.222, allocations: 447.3 kB / 0.9102 GB, free: 127.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001513/2.223, allocations: 246.6 kB / 0.9104 GB, free: 127.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003967/2.224, allocations: 93.64 kB / 0.9105 GB, free: 127.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006697/2.23, allocations: 4.091 MB / 0.9145 GB, free: 123.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.11e-07/2.23, allocations: 3.938 kB / 0.9145 GB, free: 123.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01129/2.242, allocations: 2.293 MB / 0.9167 GB, free: 121.1 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.001326/2.243, allocations: 276.2 kB / 0.917 GB, free: 120.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02245/2.265, allocations: 14.89 MB / 0.9315 GB, free: 106.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/2.265, allocations: 4.656 kB / 0.9315 GB, free: 106.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01084/2.276, allocations: 6.698 MB / 0.9381 GB, free: 99.37 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009217/2.286, allocations: 0.8928 MB / 0.9389 GB, free: 98.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03394/2.32, allocations: 19.99 MB / 0.9585 GB, free: 78.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008225/2.328, allocations: 5.294 MB / 0.9636 GB, free: 73.18 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006331/2.334, allocations: 3.02 MB / 0.9666 GB, free: 70.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/2.336, allocations: 383.4 kB / 0.967 GB, free: 69.78 MB / 0.5137 GB Notification: Performance of SimCode: time 1.011e-06/2.336, allocations: 0 / 0.967 GB, free: 69.78 MB / 0.5137 GB Notification: Performance of Templates: time 0.4136/2.749, allocations: 108.8 MB / 1.073 GB, free: 140.4 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)