Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001364/0.001364, allocations: 107.7 kB / 16.92 MB, free: 5.656 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.001491/0.001491, allocations: 189.6 kB / 17.85 MB, free: 5.176 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.452/1.452, allocations: 205.1 MB / 223.7 MB, free: 12.36 MB / 190.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.001358/0.001358, allocations: 47.94 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1049, allocations: 46.63 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01889/0.1238, allocations: 18.57 MB / 345.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01628/0.1402, allocations: 6.154 MB / 351.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005541/0.1458, allocations: 143.6 kB / 351.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01158/0.1574, allocations: 6.266 MB / 357.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008386/0.1659, allocations: 2.852 MB / 360.6 MB, free: 2.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005407/0.1713, allocations: 2.292 MB / 362.9 MB, free: 68 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01299/0.1843, allocations: 8.835 MB / 371.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2248/0.4092, allocations: 8.437 MB / 380.2 MB, free: 16.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007427/0.4166, allocations: 3.194 MB / 383.4 MB, free: 16.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008353/0.425, allocations: 4.183 MB / 387.5 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004618/0.4297, allocations: 0.7156 MB / 388.3 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008228/0.438, allocations: 1.904 MB / 390.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007914/0.4459, allocations: 3.835 MB / 394 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01159/0.4576, allocations: 4.155 MB / 398.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01957/0.4772, allocations: 12.94 MB / 411.1 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.4773, allocations: 0 / 411.1 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4773, allocations: 0 / 411.1 MB, free: 7.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005697/0.4779, allocations: 0 / 411.1 MB, free: 7.664 MB / 318.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.02982/0.5077, allocations: 8.943 MB / 420 MB, free: 1.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.5078, allocations: 13.59 kB / 420.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04906/0.5568, allocations: 4.847 MB / 424.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/0.5762, allocations: 6.571 MB / 431.5 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004623/0.5767, allocations: 441.7 kB / 431.9 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003117/0.5798, allocations: 0.5879 MB / 432.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04209/0.6219, allocations: 17.05 MB / 449.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005357/0.6225, allocations: 78.05 kB / 449.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002672/0.6252, allocations: 268.8 kB / 449.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005106/0.6303, allocations: 2.662 MB / 452.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03486/0.6652, allocations: 14.78 MB / 467.3 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09972/0.765, allocations: 64.63 MB / 0.5195 GB, free: 2.449 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0244/0.7894, allocations: 8.774 MB / 0.5281 GB, free: 9.535 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006309/0.7958, allocations: 5.074 MB / 0.533 GB, free: 4.461 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2487/1.044, allocations: 18.64 MB / 0.5512 GB, free: 130.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.433e-05/1.045, allocations: 64.98 kB / 0.5513 GB, free: 130.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.001e-06/1.045, allocations: 3.266 kB / 0.5513 GB, free: 130.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2558/1.3, allocations: 74.08 MB / 0.6236 GB, free: 75.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/1.301, allocations: 371.3 kB / 0.624 GB, free: 74.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01083/1.311, allocations: 6.417 MB / 0.6302 GB, free: 68.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001284/1.313, allocations: 81.7 kB / 0.6303 GB, free: 68.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002778/1.316, allocations: 4.767 MB / 0.635 GB, free: 63.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002032/1.318, allocations: 1.382 MB / 0.6363 GB, free: 62.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004908/1.323, allocations: 1.97 MB / 0.6382 GB, free: 60.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.161e-05/1.323, allocations: 302.4 kB / 0.6385 GB, free: 60.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0071/1.33, allocations: 5.992 MB / 0.6444 GB, free: 54.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009627/1.339, allocations: 11.02 MB / 0.6552 GB, free: 40.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01823/1.358, allocations: 17.96 MB / 0.6727 GB, free: 21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002679/1.358, allocations: 52 kB / 0.6727 GB, free: 20.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0498/1.408, allocations: 23.35 MB / 0.6955 GB, free: 14.63 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003121/1.408, allocations: 76 kB / 0.6956 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003792/1.409, allocations: 176 kB / 0.6958 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2479/1.656, allocations: 7.459 MB / 0.7031 GB, free: 152.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009084/1.666, allocations: 2.187 MB / 0.7052 GB, free: 152.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04621/1.712, allocations: 38.11 MB / 0.7424 GB, free: 137 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009943/1.722, allocations: 0.7429 MB / 0.7431 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001927/1.724, allocations: 0.5269 MB / 0.7437 GB, free: 136.7 MB / 462.1 MB 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.006542/1.73, allocations: 3.435 MB / 0.747 GB, free: 135.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001536/1.732, allocations: 0.572 MB / 0.7476 GB, free: 135.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02988/1.762, allocations: 16.96 MB / 0.7641 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.898e-05/1.762, allocations: 55.36 kB / 0.7642 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.532e-05/1.762, allocations: 27.52 kB / 0.7642 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.776e-05/1.762, allocations: 15.94 kB / 0.7642 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05523/1.817, allocations: 32.16 MB / 0.7956 GB, free: 88.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.652e-05/1.817, allocations: 4 kB / 0.7956 GB, free: 88.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003181/1.821, allocations: 0.6045 MB / 0.7962 GB, free: 88.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0206/1.841, allocations: 7.029 MB / 0.8031 GB, free: 81.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001598/1.843, allocations: 63.98 kB / 0.8032 GB, free: 80.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04113/1.884, allocations: 36.29 MB / 0.8386 GB, free: 44.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.884, allocations: 8.797 kB / 0.8386 GB, free: 44.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03855/1.923, allocations: 24.6 MB / 0.8626 GB, free: 19.85 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004003/1.927, allocations: 1.665 MB / 0.8643 GB, free: 18.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002166/1.929, allocations: 66.39 kB / 0.8643 GB, free: 18.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005441/1.934, allocations: 447.2 kB / 0.8648 GB, free: 17.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001436/1.936, allocations: 247.1 kB / 0.865 GB, free: 17.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006007/1.936, allocations: 99.98 kB / 0.8651 GB, free: 17.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2512/2.188, allocations: 4.081 MB / 0.8691 GB, free: 149.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.8e-07/2.188, allocations: 0 / 0.8691 GB, free: 149.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01352/2.201, allocations: 2.293 MB / 0.8713 GB, free: 149.1 MB / 462.1 MB 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.001572/2.203, allocations: 272.1 kB / 0.8716 GB, free: 149 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0322/2.235, allocations: 20.07 MB / 0.8912 GB, free: 145.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/2.235, allocations: 0 / 0.8912 GB, free: 145.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01046/2.245, allocations: 6.696 MB / 0.8977 GB, free: 142.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005913/2.251, allocations: 0.8875 MB / 0.8986 GB, free: 141.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/2.282, allocations: 20.19 MB / 0.9183 GB, free: 127.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007097/2.289, allocations: 5.288 MB / 0.9235 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007367/2.297, allocations: 3.028 MB / 0.9264 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001813/2.299, allocations: 379.6 kB / 0.9268 GB, free: 121.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.302e-06/2.299, allocations: 0 / 0.9268 GB, free: 121.1 MB / 462.1 MB Notification: Performance of Templates: time 0.3687/2.667, allocations: 113.1 MB / 1.037 GB, free: 137.1 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)