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.006179/0.006179, allocations: 107 kB / 15.74 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.001417/0.001417, allocations: 197.6 kB / 16.68 MB, free: 5.918 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.492/1.492, allocations: 205.1 MB / 222.6 MB, free: 4.488 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.001301/0.001301, allocations: 59.42 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1119, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01972/0.1317, allocations: 18.56 MB / 391.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.1476, allocations: 6.166 MB / 397.9 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007819/0.1555, allocations: 143.6 kB / 398 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01368/0.1693, allocations: 6.266 MB / 404.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01113/0.1805, allocations: 2.942 MB / 407.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006291/0.1868, allocations: 2.277 MB / 409.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01488/0.2018, allocations: 8.843 MB / 418.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01399/0.2158, allocations: 8.422 MB / 426.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007131/0.223, allocations: 3.229 MB / 430 MB, free: 8.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007777/0.2308, allocations: 4.191 MB / 434.2 MB, free: 4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002883/0.2337, allocations: 0.7188 MB / 434.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005731/0.2395, allocations: 1.9 MB / 436.8 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006921/0.2464, allocations: 3.882 MB / 440.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01174/0.2582, allocations: 4.15 MB / 444.9 MB, free: 9.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2921/0.5504, allocations: 13.24 MB / 458.1 MB, free: 28.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.339e-05/0.5505, allocations: 0 / 458.1 MB, free: 28.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.5505, allocations: 2 kB / 458.1 MB, free: 28.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007256/0.5513, allocations: 0 / 458.1 MB, free: 28.09 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.03413/0.5854, allocations: 8.936 MB / 467 MB, free: 25.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.5855, allocations: 9.906 kB / 467.1 MB, free: 25.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05057/0.6361, allocations: 4.855 MB / 471.9 MB, free: 24.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01878/0.6549, allocations: 6.702 MB / 478.6 MB, free: 23.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000457/0.6554, allocations: 435 kB / 479 MB, free: 23.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005081/0.6605, allocations: 0.579 MB / 479.6 MB, free: 23.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04373/0.7042, allocations: 17.06 MB / 496.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004099/0.7047, allocations: 82.45 kB / 496.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002962/0.7077, allocations: 267.2 kB / 497 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004385/0.7121, allocations: 2.66 MB / 499.7 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03217/0.7443, allocations: 14.78 MB / 0.5024 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1087/0.853, allocations: 64.36 MB / 0.5652 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02525/0.8783, allocations: 8.772 MB / 0.5738 GB, free: 4.594 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007377/0.8857, allocations: 5.06 MB / 0.5788 GB, free: 15.53 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03847/0.9242, allocations: 18.64 MB / 0.597 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.346e-05/0.9244, allocations: 66.25 kB / 0.597 GB, free: 12.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 8.326e-06/0.9244, allocations: 0 / 0.597 GB, free: 12.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.5249/1.449, allocations: 74.07 MB / 0.6694 GB, free: 189.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/1.45, allocations: 378.5 kB / 0.6697 GB, free: 189 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009347/1.459, allocations: 6.422 MB / 0.676 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001367/1.46, allocations: 81.7 kB / 0.6761 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0032/1.463, allocations: 4.758 MB / 0.6807 GB, free: 180 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002787/1.466, allocations: 1.378 MB / 0.6821 GB, free: 178.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003976/1.47, allocations: 1.981 MB / 0.684 GB, free: 176.6 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.057e-05/1.47, allocations: 301.1 kB / 0.6843 GB, free: 176.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007504/1.478, allocations: 5.991 MB / 0.6901 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01183/1.49, allocations: 11.02 MB / 0.7009 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01838/1.508, allocations: 17.97 MB / 0.7184 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001347/1.508, allocations: 51.94 kB / 0.7185 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04523/1.554, allocations: 23.34 MB / 0.7413 GB, free: 113 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/1.554, allocations: 80 kB / 0.7414 GB, free: 112.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001774/1.554, allocations: 172 kB / 0.7415 GB, free: 112.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02164/1.576, allocations: 7.443 MB / 0.7488 GB, free: 105.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007594/1.583, allocations: 2.187 MB / 0.7509 GB, free: 103.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04526/1.628, allocations: 38.1 MB / 0.7881 GB, free: 64.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01003/1.639, allocations: 0.7449 MB / 0.7889 GB, free: 63.85 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00221/1.641, allocations: 0.527 MB / 0.7894 GB, free: 63.33 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.007759/1.649, allocations: 3.438 MB / 0.7927 GB, free: 59.88 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002233/1.651, allocations: 0.5785 MB / 0.7933 GB, free: 59.29 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03239/1.683, allocations: 16.95 MB / 0.8099 GB, free: 42.27 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.443e-05/1.683, allocations: 51.98 kB / 0.8099 GB, free: 42.21 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.766e-05/1.683, allocations: 20 kB / 0.8099 GB, free: 42.2 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.788e-05/1.683, allocations: 15.94 kB / 0.8099 GB, free: 42.18 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2877/1.971, allocations: 32.04 MB / 0.8412 GB, free: 178.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.868e-05/1.971, allocations: 3.25 kB / 0.8412 GB, free: 178.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003417/1.975, allocations: 0.6098 MB / 0.8418 GB, free: 178.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02144/1.996, allocations: 7.02 MB / 0.8487 GB, free: 177.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001148/1.997, allocations: 59.81 kB / 0.8487 GB, free: 177.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04386/2.041, allocations: 36.29 MB / 0.8842 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/2.041, allocations: 5.969 kB / 0.8842 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04375/2.085, allocations: 24.61 MB / 0.9082 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004699/2.09, allocations: 1.66 MB / 0.9098 GB, free: 128.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002708/2.093, allocations: 64 kB / 0.9099 GB, free: 128.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006604/2.099, allocations: 443.3 kB / 0.9103 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002068/2.101, allocations: 254.5 kB / 0.9106 GB, free: 127.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009168/2.102, allocations: 90.19 kB / 0.9107 GB, free: 127.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.008328/2.111, allocations: 4.091 MB / 0.9147 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.11e-07/2.111, allocations: 0 / 0.9147 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01281/2.123, allocations: 2.294 MB / 0.9169 GB, free: 121 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.002155/2.126, allocations: 285.4 kB / 0.9172 GB, free: 120.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02316/2.149, allocations: 14.9 MB / 0.9317 GB, free: 105.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.149, allocations: 0 / 0.9317 GB, free: 105.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01167/2.161, allocations: 6.696 MB / 0.9382 GB, free: 99.24 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01189/2.173, allocations: 0.9004 MB / 0.9391 GB, free: 98.39 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03623/2.209, allocations: 19.98 MB / 0.9586 GB, free: 78.39 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/2.219, allocations: 5.295 MB / 0.9638 GB, free: 73.06 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.008614/2.228, allocations: 3.028 MB / 0.9668 GB, free: 70.03 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002724/2.23, allocations: 383.4 kB / 0.9671 GB, free: 69.65 MB / 0.5137 GB Notification: Performance of SimCode: time 9.01e-07/2.23, allocations: 0 / 0.9671 GB, free: 69.65 MB / 0.5137 GB Notification: Performance of Templates: time 0.4068/2.637, allocations: 108.8 MB / 1.073 GB, free: 140.3 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (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)