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.001542/0.001542, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00126/0.00126, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.4 MB / 222.1 MB, free: 5.52 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.0004957/0.0004958, allocations: 18.81 kB / 278.9 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2605, allocations: 47.59 MB / 326.5 MB, free: 1.695 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0652/0.3257, allocations: 69.64 MB / 396.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04237/0.3682, allocations: 16.6 MB / 412.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01576/0.384, allocations: 367.1 kB / 413 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0145/0.3985, allocations: 3.534 MB / 416.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03333/0.4319, allocations: 9.927 MB / 426.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00598/0.4379, allocations: 1.295 MB / 427.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.322/0.7599, allocations: 51.93 MB / 479.7 MB, free: 31.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01346/0.7734, allocations: 10.16 MB / 489.9 MB, free: 30.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003541/0.777, allocations: 1.984 MB / 491.9 MB, free: 29.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002771/0.7798, allocations: 2.509 MB / 494.4 MB, free: 28.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007494/0.7805, allocations: 248 kB / 494.6 MB, free: 27.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002222/0.7828, allocations: 1.277 MB / 495.9 MB, free: 26.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.7848, allocations: 2.977 MB / 498.9 MB, free: 24.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.7862, allocations: 1.458 MB / 0.4886 GB, free: 24.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007942/0.7941, allocations: 11.01 MB / 0.4994 GB, free: 14.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.7941, allocations: 0 / 0.4994 GB, free: 14.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.7942, allocations: 0 / 0.4994 GB, free: 14.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002965/0.7945, allocations: 1.641 kB / 0.4994 GB, free: 14.62 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.01933/0.8138, allocations: 8.22 MB / 0.5074 GB, free: 7.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.8139, allocations: 8.031 kB / 0.5074 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3064/1.12, allocations: 27.29 MB / 0.534 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02023/1.141, allocations: 7.56 MB / 0.5414 GB, free: 7.734 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003948/1.141, allocations: 436.8 kB / 0.5418 GB, free: 7.496 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002779/1.144, allocations: 0.5884 MB / 0.5424 GB, free: 7.105 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03481/1.179, allocations: 17.1 MB / 0.5591 GB, free: 9.961 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002454/1.179, allocations: 78.7 kB / 0.5592 GB, free: 9.914 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007203/1.18, allocations: 270.3 kB / 0.5595 GB, free: 9.84 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004246/1.184, allocations: 2.656 MB / 0.562 GB, free: 7.652 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03216/1.216, allocations: 14.67 MB / 0.5764 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.479/1.695, allocations: 64.35 MB / 0.6392 GB, free: 156 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02111/1.716, allocations: 8.847 MB / 0.6479 GB, free: 155.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02544/1.742, allocations: 18.32 MB / 0.6657 GB, free: 148.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.047e-05/1.742, allocations: 62.44 kB / 0.6658 GB, free: 148.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 7.985e-06/1.742, allocations: 3.094 kB / 0.6658 GB, free: 148.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2351/1.977, allocations: 74.98 MB / 0.739 GB, free: 76.56 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/1.977, allocations: 372.6 kB / 0.7394 GB, free: 76.12 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00904/1.986, allocations: 6.947 MB / 0.7462 GB, free: 69.18 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001287/1.988, allocations: 87.8 kB / 0.7463 GB, free: 69.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002591/1.99, allocations: 4.86 MB / 0.751 GB, free: 64.25 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001848/1.992, allocations: 1.36 MB / 0.7523 GB, free: 62.89 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005467/1.993, allocations: 183.9 kB / 0.7525 GB, free: 62.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003838/1.993, allocations: 0.6782 MB / 0.7532 GB, free: 62.03 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006073/1.999, allocations: 5.624 MB / 0.7587 GB, free: 56.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00818/2.007, allocations: 10.55 MB / 0.769 GB, free: 43.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008655/2.016, allocations: 7.531 MB / 0.7763 GB, free: 36.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.082e-05/2.016, allocations: 48 kB / 0.7764 GB, free: 36.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04062/2.057, allocations: 21.91 MB / 0.7978 GB, free: 14.19 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/2.057, allocations: 76 kB / 0.7978 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001708/2.057, allocations: 172 kB / 0.798 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01972/2.077, allocations: 6.917 MB / 0.8047 GB, free: 7.012 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00772/2.084, allocations: 2.072 MB / 0.8068 GB, free: 4.938 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2797/2.364, allocations: 35.2 MB / 0.8411 GB, free: 159.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008728/2.373, allocations: 0.7251 MB / 0.8419 GB, free: 159.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/2.375, allocations: 0.5104 MB / 0.8424 GB, free: 159 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * 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 (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.006625/2.381, allocations: 3.427 MB / 0.8457 GB, free: 157.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/2.383, allocations: 0.5974 MB / 0.8463 GB, free: 157.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02899/2.412, allocations: 16.09 MB / 0.862 GB, free: 148.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.382e-05/2.412, allocations: 54.83 kB / 0.8621 GB, free: 148.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.97e-05/2.412, allocations: 19.95 kB / 0.8621 GB, free: 148.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.335e-05/2.412, allocations: 19.94 kB / 0.8621 GB, free: 148.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05243/2.464, allocations: 31.48 MB / 0.8928 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.276e-05/2.465, allocations: 7.844 kB / 0.8928 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003194/2.468, allocations: 0.6082 MB / 0.8934 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0183/2.486, allocations: 6.569 MB / 0.8998 GB, free: 109.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001018/2.487, allocations: 60 kB / 0.8999 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03733/2.524, allocations: 33.48 MB / 0.9326 GB, free: 75.71 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/2.525, allocations: 7.953 kB / 0.9326 GB, free: 75.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0357/2.56, allocations: 23.94 MB / 0.956 GB, free: 51.68 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005033/2.565, allocations: 1.658 MB / 0.9576 GB, free: 50 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002157/2.568, allocations: 60.7 kB / 0.9577 GB, free: 49.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005809/2.573, allocations: 431.9 kB / 0.9581 GB, free: 49.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001234/2.575, allocations: 247.2 kB / 0.9583 GB, free: 49.28 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003622/2.575, allocations: 96.62 kB / 0.9584 GB, free: 49.18 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006539/2.582, allocations: 4.515 MB / 0.9628 GB, free: 44.68 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.71e-07/2.582, allocations: 0 / 0.9628 GB, free: 44.68 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01117/2.593, allocations: 2.232 MB / 0.965 GB, free: 42.46 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001109/2.594, allocations: 286.3 kB / 0.9653 GB, free: 42.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01812/2.612, allocations: 14.2 MB / 0.9791 GB, free: 28.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/2.612, allocations: 0 / 0.9791 GB, free: 28.02 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009169/2.621, allocations: 6.541 MB / 0.9855 GB, free: 21.44 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00532/2.627, allocations: 0.831 MB / 0.9863 GB, free: 20.62 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2343/2.861, allocations: 22.43 MB / 1.008 GB, free: 168.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007189/2.868, allocations: 5.438 MB / 1.014 GB, free: 167.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007669/2.876, allocations: 3.042 MB / 1.017 GB, free: 167.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/2.878, allocations: 391.8 kB / 1.017 GB, free: 167.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.733e-06/2.878, allocations: 0 / 1.017 GB, free: 167.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1426/3.02, allocations: 103.6 MB / 1.118 GB, free: 69.45 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: