Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004001/0.004, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.491/3.491, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001863/0.001863, allocations: 86.94 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007304/0.0007305, allocations: 12 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1812, allocations: 47.58 MB / 374.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.5956/0.7769, allocations: 69.65 MB / 444.2 MB, free: 6.633 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.08588/0.8629, allocations: 16.59 MB / 460.8 MB, free: 6.004 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02651/0.8895, allocations: 367 kB / 461.1 MB, free: 5.645 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02227/0.9119, allocations: 3.53 MB / 464.7 MB, free: 2.098 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07285/0.9848, allocations: 9.938 MB / 474.6 MB, free: 8.137 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01276/0.9976, allocations: 1.299 MB / 475.9 MB, free: 6.836 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.2316/1.229, allocations: 51.94 MB / 0.5155 GB, free: 2.844 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0396/1.269, allocations: 10.15 MB / 0.5254 GB, free: 8.617 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009119/1.278, allocations: 1.982 MB / 0.5273 GB, free: 6.629 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009761/1.288, allocations: 2.512 MB / 0.5298 GB, free: 4.109 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00294/1.291, allocations: 248 kB / 0.53 GB, free: 3.867 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00793/1.299, allocations: 1.276 MB / 0.5313 GB, free: 2.59 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.5066/1.806, allocations: 2.977 MB / 0.5342 GB, free: 58.46 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00559/1.811, allocations: 1.459 MB / 0.5356 GB, free: 58.43 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03018/1.842, allocations: 11 MB / 0.5463 GB, free: 57.78 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.842, allocations: 0.5625 kB / 0.5463 GB, free: 57.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.254e-06/1.842, allocations: 1.188 kB / 0.5463 GB, free: 57.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000731/1.843, allocations: 1.75 kB / 0.5463 GB, free: 57.78 MB / 410.7 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.06822/1.911, allocations: 8.219 MB / 0.5544 GB, free: 54.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.97e-05/1.911, allocations: 11.89 kB / 0.5544 GB, free: 54.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.018/2.929, allocations: 27.28 MB / 0.581 GB, free: 40.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04625/2.975, allocations: 7.565 MB / 0.5884 GB, free: 35.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000888/2.976, allocations: 433.4 kB / 0.5888 GB, free: 34.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006308/2.983, allocations: 0.5834 MB / 0.5894 GB, free: 34.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09114/3.074, allocations: 17.1 MB / 0.6061 GB, free: 21.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008865/3.075, allocations: 84.2 kB / 0.6062 GB, free: 21.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005184/3.08, allocations: 269.1 kB / 0.6064 GB, free: 21.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01258/3.093, allocations: 2.65 MB / 0.609 GB, free: 19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08056/3.173, allocations: 14.67 MB / 0.6233 GB, free: 8.777 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2198/3.393, allocations: 64.36 MB / 0.6862 GB, free: 2.133 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07519/3.469, allocations: 8.84 MB / 0.6948 GB, free: 9.152 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5322/4.001, allocations: 18.3 MB / 0.7127 GB, free: 181.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001311/4.001, allocations: 63.97 kB / 0.7128 GB, free: 181.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=281): time 1.171e-05/4.001, allocations: 0.75 kB / 0.7128 GB, free: 181.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=374): time 0.8519/4.853, allocations: 74.99 MB / 0.786 GB, free: 126.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002442/4.853, allocations: 372.6 kB / 0.7863 GB, free: 126.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02876/4.882, allocations: 6.954 MB / 0.7931 GB, free: 119.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002076/4.884, allocations: 81.7 kB / 0.7932 GB, free: 119.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006711/4.891, allocations: 4.617 MB / 0.7977 GB, free: 114.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00403/4.895, allocations: 1.371 MB / 0.7991 GB, free: 113.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003125/4.898, allocations: 181.4 kB / 0.7992 GB, free: 113.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001648/4.9, allocations: 0.6868 MB / 0.7999 GB, free: 112.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02171/4.922, allocations: 5.62 MB / 0.8054 GB, free: 106.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03345/4.955, allocations: 10.54 MB / 0.8157 GB, free: 93.88 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02997/4.985, allocations: 7.53 MB / 0.823 GB, free: 86.32 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002481/4.986, allocations: 48 kB / 0.8231 GB, free: 86.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.1283/5.114, allocations: 21.66 MB / 0.8442 GB, free: 64.56 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002436/5.114, allocations: 76 kB / 0.8443 GB, free: 64.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003851/5.115, allocations: 172 kB / 0.8445 GB, free: 64.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06149/5.176, allocations: 6.916 MB / 0.8512 GB, free: 57.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02285/5.199, allocations: 2.074 MB / 0.8533 GB, free: 55.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5973/5.797, allocations: 35.21 MB / 0.8876 GB, free: 161.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02308/5.82, allocations: 0.7191 MB / 0.8883 GB, free: 161.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004789/5.825, allocations: 0.5134 MB / 0.8888 GB, free: 161.3 MB / 474.7 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.02122/5.846, allocations: 3.433 MB / 0.8922 GB, free: 161.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004456/5.851, allocations: 0.5892 MB / 0.8928 GB, free: 161.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09962/5.95, allocations: 16.1 MB / 0.9085 GB, free: 157.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001724/5.951, allocations: 45.64 kB / 0.9085 GB, free: 157.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001046/5.951, allocations: 18.34 kB / 0.9086 GB, free: 157.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001231/5.951, allocations: 16.5 kB / 0.9086 GB, free: 157.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1675/6.118, allocations: 31.47 MB / 0.9393 GB, free: 143.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.778e-05/6.119, allocations: 0 / 0.9393 GB, free: 143.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008735/6.127, allocations: 0.6164 MB / 0.9399 GB, free: 143.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05573/6.183, allocations: 6.562 MB / 0.9463 GB, free: 139 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001915/6.185, allocations: 65.23 kB / 0.9464 GB, free: 138.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1205/6.306, allocations: 33.47 MB / 0.9791 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.477e-05/6.306, allocations: 10.06 kB / 0.9791 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1072/6.413, allocations: 23.94 MB / 1.002 GB, free: 81.56 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01033/6.423, allocations: 1.657 MB / 1.004 GB, free: 79.88 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004775/6.428, allocations: 65.14 kB / 1.004 GB, free: 79.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.013/6.441, allocations: 431.3 kB / 1.005 GB, free: 79.39 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003716/6.445, allocations: 257.5 kB / 1.005 GB, free: 79.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001804/6.447, allocations: 92 kB / 1.005 GB, free: 79.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0173/6.464, allocations: 4.509 MB / 1.009 GB, free: 74.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.713e-06/6.464, allocations: 0 / 1.009 GB, free: 74.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02397/6.488, allocations: 2.232 MB / 1.011 GB, free: 72.34 MB / 474.7 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.003235/6.492, allocations: 284.1 kB / 1.012 GB, free: 72.06 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04901/6.541, allocations: 14.2 MB / 1.026 GB, free: 57.88 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.738e-05/6.541, allocations: 3.938 kB / 1.026 GB, free: 57.88 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02511/6.566, allocations: 6.545 MB / 1.032 GB, free: 51.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0112/6.577, allocations: 0.8353 MB / 1.033 GB, free: 50.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08249/6.66, allocations: 23.28 MB / 1.056 GB, free: 27.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01987/6.68, allocations: 5.432 MB / 1.061 GB, free: 21.83 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006909/6.687, allocations: 455.4 kB / 1.061 GB, free: 21.38 MB / 474.7 MB Notification: Performance of SimCode: time 3.416e-06/6.687, allocations: 0 / 1.061 GB, free: 21.38 MB / 474.7 MB Notification: Performance of Templates: time 1.479/8.166, allocations: 199.8 MB / 1.256 GB, free: 149.2 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)