Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001786/0.001793, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002427/0.002427, allocations: 193.2 kB / 16.14 MB, free: 6.707 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.554/1.554, allocations: 205.1 MB / 222 MB, free: 4.758 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.001261/0.001261, allocations: 47.94 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3031, allocations: 46.63 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.05319/0.3564, allocations: 55.46 MB / 380.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03489/0.3914, allocations: 11.91 MB / 392 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01515/0.4066, allocations: 247.4 kB / 392.3 MB, free: 312 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008233/0.4149, allocations: 4.204 MB / 396.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007621/0.4225, allocations: 2.024 MB / 398.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003218/0.4258, allocations: 1.006 MB / 399.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0119/0.4377, allocations: 8.224 MB / 407.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007296/0.4451, allocations: 5.211 MB / 413 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003978/0.4491, allocations: 1.912 MB / 414.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005169/0.4543, allocations: 3.05 MB / 417.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001501/0.4558, allocations: 340 kB / 418.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003523/0.4593, allocations: 1.545 MB / 419.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003141/0.4625, allocations: 2.466 MB / 422.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004758/0.4673, allocations: 2.75 MB / 425 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.4792, allocations: 9.187 MB / 434.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.4793, allocations: 0 / 434.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4793, allocations: 0 / 434.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003982/0.4797, allocations: 0 / 434.2 MB, free: 6.223 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01949/0.4992, allocations: 6.032 MB / 440.2 MB, free: 116 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.4993, allocations: 8.031 kB / 440.2 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01137/0.5106, allocations: 2.541 MB / 442.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01034/0.521, allocations: 3.847 MB / 446.6 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003442/0.5214, allocations: 304.3 kB / 446.9 MB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002215/0.5236, allocations: 443.6 kB / 447.4 MB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2698/0.7935, allocations: 12.4 MB / 459.8 MB, free: 110 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001596/0.7937, allocations: 46.12 kB / 459.8 MB, free: 110 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00049/0.7942, allocations: 194.5 kB / 460 MB, free: 109.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003199/0.7974, allocations: 2.033 MB / 462 MB, free: 109.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02162/0.819, allocations: 10.56 MB / 472.6 MB, free: 104.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05003/0.8691, allocations: 44.37 MB / 0.5048 GB, free: 59.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/0.8807, allocations: 4.845 MB / 0.5096 GB, free: 54.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002275/0.883, allocations: 2.011 MB / 0.5115 GB, free: 52.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/0.8933, allocations: 7.117 MB / 0.5185 GB, free: 45.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.8933, allocations: 55.5 kB / 0.5185 GB, free: 45.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 5.68e-06/0.8933, allocations: 0 / 0.5185 GB, free: 45.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.06599/0.9593, allocations: 19.65 MB / 0.5377 GB, free: 25.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.963e-05/0.9595, allocations: 201.9 kB / 0.5379 GB, free: 25.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00774/0.9672, allocations: 4.493 MB / 0.5423 GB, free: 20.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005169/0.9678, allocations: 57.7 kB / 0.5424 GB, free: 20.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001866/0.9697, allocations: 3.524 MB / 0.5458 GB, free: 17.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008654/0.9705, allocations: 0.8329 MB / 0.5466 GB, free: 16.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/0.972, allocations: 1.345 MB / 0.5479 GB, free: 15.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.437e-05/0.9721, allocations: 309.1 kB / 0.5482 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00292/0.975, allocations: 2.363 MB / 0.5505 GB, free: 12.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004577/0.9796, allocations: 6.167 MB / 0.5566 GB, free: 4.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01096/0.9906, allocations: 9.157 MB / 0.5655 GB, free: 9.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001557/0.9908, allocations: 36 kB / 0.5655 GB, free: 9.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01999/1.011, allocations: 9.551 MB / 0.5749 GB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001853/1.011, allocations: 60 kB / 0.5749 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000311/1.011, allocations: 136 kB / 0.5751 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004499/1.016, allocations: 1.374 MB / 0.5764 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005114/1.021, allocations: 1.466 MB / 0.5778 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/1.033, allocations: 7.975 MB / 0.5856 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005816/1.039, allocations: 351.4 kB / 0.586 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00133/1.041, allocations: 388 kB / 0.5863 GB, free: 3.934 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005759/1.046, allocations: 2.489 MB / 0.5888 GB, free: 1.434 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001246/1.048, allocations: 399.3 kB / 0.5891 GB, free: 1.039 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009559/1.057, allocations: 4.13 MB / 0.5932 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.442e-05/1.057, allocations: 27.98 kB / 0.5932 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.149e-05/1.057, allocations: 8 kB / 0.5932 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-05/1.057, allocations: 19.89 kB / 0.5932 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02722/1.085, allocations: 10.35 MB / 0.6033 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-05/1.085, allocations: 8 kB / 0.6033 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001679/1.086, allocations: 347.4 kB / 0.6037 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003826/1.09, allocations: 1.152 MB / 0.6048 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002984/1.091, allocations: 40 kB / 0.6048 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2798/1.37, allocations: 6.67 MB / 0.6114 GB, free: 140.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.446e-05/1.37, allocations: 9.875 kB / 0.6114 GB, free: 140.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/1.383, allocations: 6.913 MB / 0.6181 GB, free: 137.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002121/1.385, allocations: 0.7332 MB / 0.6188 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006117/1.385, allocations: 39.69 kB / 0.6189 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/1.387, allocations: 119.3 kB / 0.619 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004006/1.387, allocations: 138.8 kB / 0.6191 GB, free: 137.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/1.387, allocations: 69.17 kB / 0.6192 GB, free: 137.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004127/1.392, allocations: 2.82 MB / 0.6219 GB, free: 136.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.392, allocations: 0 / 0.6219 GB, free: 136.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007101/1.399, allocations: 1.213 MB / 0.6231 GB, free: 136.4 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006923/1.399, allocations: 235.9 kB / 0.6233 GB, free: 136.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009432/1.409, allocations: 5.739 MB / 0.6289 GB, free: 134.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/1.409, allocations: 3.938 kB / 0.629 GB, free: 134.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002713/1.412, allocations: 1.869 MB / 0.6308 GB, free: 133.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003808/1.416, allocations: 0.5124 MB / 0.6313 GB, free: 133.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02389/1.439, allocations: 13.62 MB / 0.6446 GB, free: 121 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00498/1.444, allocations: 3.883 MB / 0.6484 GB, free: 117.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004874/1.449, allocations: 1.929 MB / 0.6503 GB, free: 115.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000821/1.45, allocations: 271.4 kB / 0.6505 GB, free: 114.9 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/1.45, allocations: 0 / 0.6505 GB, free: 114.9 MB / 430.1 MB Notification: Performance of Templates: time 0.08203/1.532, allocations: 44.2 MB / 0.6937 GB, free: 70.72 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)