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.00135/0.00135, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.00139/0.00139, allocations: 198.9 kB / 18 MB, free: 5.078 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.469/1.469, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001233/0.001233, allocations: 47.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.09524, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2338/0.3291, allocations: 18.58 MB / 393.1 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.3457, allocations: 6.142 MB / 399.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006297/0.3521, allocations: 147.4 kB / 399.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01331/0.3655, allocations: 6.274 MB / 405.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.3764, allocations: 2.851 MB / 408.5 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007928/0.3844, allocations: 2.288 MB / 410.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01659/0.401, allocations: 8.844 MB / 419.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0143/0.4154, allocations: 8.425 MB / 428 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00809/0.4235, allocations: 3.225 MB / 431.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007855/0.4314, allocations: 4.191 MB / 435.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00298/0.4345, allocations: 0.7148 MB / 436.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005947/0.4404, allocations: 1.904 MB / 438.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006762/0.4472, allocations: 3.874 MB / 441.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01452/0.4618, allocations: 4.15 MB / 446.1 MB, free: 7.719 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02598/0.4878, allocations: 13.24 MB / 459.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.086e-05/0.4879, allocations: 0 / 459.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4879, allocations: 4 kB / 459.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005774/0.4885, allocations: 0 / 459.3 MB, free: 10.43 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.02876/0.5173, allocations: 8.947 MB / 468.3 MB, free: 1.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.5173, allocations: 8.031 kB / 468.3 MB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05126/0.5686, allocations: 4.855 MB / 473.1 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01962/0.5883, allocations: 6.701 MB / 479.8 MB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005286/0.5889, allocations: 435.7 kB / 480.3 MB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003329/0.5922, allocations: 0.5819 MB / 480.9 MB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04044/0.6327, allocations: 17.06 MB / 497.9 MB, free: 2.719 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004754/0.6332, allocations: 79.27 kB / 498 MB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002455/0.6357, allocations: 267.8 kB / 498.3 MB, free: 2.379 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005103/0.6408, allocations: 2.654 MB / 0.4892 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03388/0.6747, allocations: 14.79 MB / 0.5036 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5508/1.226, allocations: 64.35 MB / 0.5665 GB, free: 109.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02604/1.252, allocations: 8.775 MB / 0.575 GB, free: 108.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007554/1.259, allocations: 5.07 MB / 0.58 GB, free: 107.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03427/1.294, allocations: 18.64 MB / 0.5982 GB, free: 99.21 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/1.294, allocations: 67.38 kB / 0.5982 GB, free: 99.15 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.431e-06/1.294, allocations: 3.812 kB / 0.5982 GB, free: 99.15 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2469/1.541, allocations: 74.07 MB / 0.6706 GB, free: 32.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001896/1.541, allocations: 372.6 kB / 0.6709 GB, free: 31.94 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008926/1.55, allocations: 6.42 MB / 0.6772 GB, free: 25.52 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001136/1.551, allocations: 85.7 kB / 0.6773 GB, free: 25.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002335/1.553, allocations: 4.762 MB / 0.6819 GB, free: 20.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.555, allocations: 1.375 MB / 0.6833 GB, free: 19.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00281/1.558, allocations: 1.981 MB / 0.6852 GB, free: 17.31 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.841e-05/1.558, allocations: 301.1 kB / 0.6855 GB, free: 17.01 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007138/1.565, allocations: 5.992 MB / 0.6914 GB, free: 11.01 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/1.575, allocations: 11.02 MB / 0.7021 GB, free: 13.62 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02346/1.599, allocations: 17.97 MB / 0.7197 GB, free: 9.277 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001997/1.599, allocations: 48 kB / 0.7197 GB, free: 9.23 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05185/1.651, allocations: 23.34 MB / 0.7425 GB, free: 1.84 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001806/1.651, allocations: 80 kB / 0.7426 GB, free: 1.762 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003679/1.651, allocations: 172 kB / 0.7427 GB, free: 1.594 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2956/1.947, allocations: 7.449 MB / 0.75 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009205/1.956, allocations: 2.185 MB / 0.7521 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04838/2.005, allocations: 38.09 MB / 0.7893 GB, free: 157.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00907/2.014, allocations: 0.7465 MB / 0.7901 GB, free: 157.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001792/2.016, allocations: 0.5235 MB / 0.7906 GB, free: 157.1 MB / 0.5138 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.006245/2.022, allocations: 3.443 MB / 0.7939 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/2.023, allocations: 0.5739 MB / 0.7945 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03055/2.054, allocations: 16.95 MB / 0.8111 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-05/2.054, allocations: 51.55 kB / 0.8111 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.16e-05/2.054, allocations: 16 kB / 0.8111 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.871e-05/2.054, allocations: 23.92 kB / 0.8112 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05296/2.107, allocations: 32.04 MB / 0.8424 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.307e-05/2.107, allocations: 4 kB / 0.8424 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003168/2.11, allocations: 0.6084 MB / 0.843 GB, free: 108.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0197/2.13, allocations: 7.009 MB / 0.8499 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009006/2.131, allocations: 64 kB / 0.8499 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0396/2.17, allocations: 36.3 MB / 0.8854 GB, free: 64.71 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/2.171, allocations: 4 kB / 0.8854 GB, free: 64.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03836/2.209, allocations: 24.62 MB / 0.9094 GB, free: 40.05 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004969/2.214, allocations: 1.658 MB / 0.9111 GB, free: 38.37 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001215/2.215, allocations: 61.38 kB / 0.9111 GB, free: 38.31 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004385/2.22, allocations: 443.3 kB / 0.9115 GB, free: 37.88 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001044/2.221, allocations: 254.6 kB / 0.9118 GB, free: 37.63 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003567/2.221, allocations: 98.64 kB / 0.9119 GB, free: 37.54 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005349/2.226, allocations: 4.08 MB / 0.9159 GB, free: 33.46 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3e-07/2.226, allocations: 3.281 kB / 0.9159 GB, free: 33.46 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01037/2.237, allocations: 2.293 MB / 0.9181 GB, free: 31.18 MB / 0.5138 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.001186/2.238, allocations: 280.4 kB / 0.9184 GB, free: 30.91 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02051/2.258, allocations: 14.89 MB / 0.9329 GB, free: 16 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/2.258, allocations: 0 / 0.9329 GB, free: 16 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.237/2.495, allocations: 6.7 MB / 0.9394 GB, free: 173.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008173/2.504, allocations: 0.8881 MB / 0.9403 GB, free: 173.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0366/2.54, allocations: 20.01 MB / 0.9599 GB, free: 167.1 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007601/2.548, allocations: 5.29 MB / 0.965 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007209/2.555, allocations: 3.018 MB / 0.968 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/2.557, allocations: 389.5 kB / 0.9683 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.663e-06/2.557, allocations: 2 kB / 0.9683 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of Templates: time 0.1478/2.705, allocations: 110.1 MB / 1.076 GB, free: 63.13 MB / 0.5138 GB 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)