Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.008366/0.008366, allocations: 108.9 kB / 15.74 MB, free: 6.449 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.002193/0.002193, allocations: 197 kB / 16.67 MB, free: 6.355 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 / 222.6 MB, free: 4.48 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.001186/0.001186, allocations: 51.31 kB / 326.5 MB, free: 14.56 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1195, allocations: 46.63 MB / 373.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01528/0.1348, allocations: 13.51 MB / 386.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01227/0.1471, allocations: 4.858 MB / 391.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003466/0.1507, allocations: 87.75 kB / 391.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008537/0.1593, allocations: 4.198 MB / 395.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008096/0.1674, allocations: 2.152 MB / 398 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004129/0.1716, allocations: 1.103 MB / 399.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01058/0.1822, allocations: 5.631 MB / 404.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01013/0.1924, allocations: 5.313 MB / 410 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005524/0.198, allocations: 2.169 MB / 412.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00601/0.204, allocations: 2.882 MB / 415.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00258/0.2066, allocations: 0.4922 MB / 415.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004879/0.2115, allocations: 1.623 MB / 417.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004553/0.2161, allocations: 2.619 MB / 419.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006957/0.2231, allocations: 2.906 MB / 422.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01735/0.2405, allocations: 9.54 MB / 432.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.2406, allocations: 4 kB / 432.3 MB, free: 6.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.2406, allocations: 0 / 432.3 MB, free: 6.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004956/0.2411, allocations: 0 / 432.3 MB, free: 6.07 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.02242/0.2635, allocations: 6.036 MB / 438.3 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.923e-05/0.2636, allocations: 8.031 kB / 438.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01361/0.2772, allocations: 2.536 MB / 440.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01388/0.2912, allocations: 3.917 MB / 444.8 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003909/0.2916, allocations: 308.3 kB / 445.1 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002615/0.2943, allocations: 439.6 kB / 445.5 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2987/0.593, allocations: 12.4 MB / 457.9 MB, free: 62.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002069/0.5933, allocations: 50.3 kB / 457.9 MB, free: 62.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006294/0.5939, allocations: 189.4 kB / 458.1 MB, free: 62.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003695/0.5976, allocations: 2.037 MB / 460.2 MB, free: 62.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0226/0.6202, allocations: 10.56 MB / 470.7 MB, free: 58.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04908/0.6694, allocations: 44.14 MB / 0.5028 GB, free: 18.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/0.6812, allocations: 4.841 MB / 0.5075 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002528/0.6838, allocations: 2.01 MB / 0.5095 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/0.695, allocations: 7.105 MB / 0.5164 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/0.6951, allocations: 67.48 kB / 0.5165 GB, free: 4.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.639e-06/0.6951, allocations: 5.25 kB / 0.5165 GB, free: 4.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.06663/0.7617, allocations: 19.65 MB / 0.5357 GB, free: 476 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.7619, allocations: 205.9 kB / 0.5359 GB, free: 228 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006161/0.768, allocations: 4.489 MB / 0.5403 GB, free: 11.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003709/0.7684, allocations: 57.7 kB / 0.5403 GB, free: 11.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002329/0.7708, allocations: 3.517 MB / 0.5438 GB, free: 8.129 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009333/0.7717, allocations: 0.8445 MB / 0.5446 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/0.7734, allocations: 1.333 MB / 0.5459 GB, free: 5.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.7735, allocations: 305.1 kB / 0.5462 GB, free: 5.629 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003516/0.7771, allocations: 2.37 MB / 0.5485 GB, free: 3.258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0058/0.7829, allocations: 6.16 MB / 0.5545 GB, free: 11.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/0.7933, allocations: 9.175 MB / 0.5635 GB, free: 188 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.2e-05/0.7934, allocations: 47.94 kB / 0.5635 GB, free: 140 kB / 430.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01771/0.8111, allocations: 9.535 MB / 0.5728 GB, free: 6.586 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001414/0.8113, allocations: 64.94 kB / 0.5729 GB, free: 6.523 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002008/0.8115, allocations: 132 kB / 0.573 GB, free: 6.395 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004152/0.8157, allocations: 1.37 MB / 0.5744 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004945/0.8206, allocations: 1.478 MB / 0.5758 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/0.8334, allocations: 8.471 MB / 0.5841 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00526/0.8387, allocations: 351.4 kB / 0.5844 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/0.84, allocations: 388 kB / 0.5848 GB, free: 10.21 MB / 462.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.005215/0.8452, allocations: 2.493 MB / 0.5872 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/0.8464, allocations: 406.8 kB / 0.5876 GB, free: 7.297 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009566/0.8559, allocations: 4.122 MB / 0.5916 GB, free: 3.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.952e-05/0.856, allocations: 23.94 kB / 0.5916 GB, free: 3.137 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.068e-05/0.8561, allocations: 8 kB / 0.5916 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.668e-05/0.8561, allocations: 15.95 kB / 0.5917 GB, free: 3.113 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02598/0.8821, allocations: 10.13 MB / 0.6016 GB, free: 8.828 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.902e-05/0.8822, allocations: 8 kB / 0.6016 GB, free: 8.82 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001572/0.8838, allocations: 324.1 kB / 0.6019 GB, free: 8.504 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00395/0.8878, allocations: 1.152 MB / 0.603 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002934/0.8881, allocations: 48 kB / 0.603 GB, free: 7.301 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/0.8995, allocations: 7.148 MB / 0.61 GB, free: 8 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.942e-05/0.8995, allocations: 13.58 kB / 0.61 GB, free: 15.99 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/0.912, allocations: 6.907 MB / 0.6168 GB, free: 9.004 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002745/0.9147, allocations: 0.7301 MB / 0.6175 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/0.9159, allocations: 36 kB / 0.6175 GB, free: 8.215 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002343/0.9183, allocations: 119.9 kB / 0.6176 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004282/0.9187, allocations: 140.9 kB / 0.6178 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001793/0.9189, allocations: 67.97 kB / 0.6178 GB, free: 7.895 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006128/0.9251, allocations: 2.822 MB / 0.6206 GB, free: 5.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.9251, allocations: 0 / 0.6206 GB, free: 5.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008513/0.9336, allocations: 1.219 MB / 0.6218 GB, free: 3.859 MB / 494.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.001134/0.9348, allocations: 239 kB / 0.622 GB, free: 3.625 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.27/1.205, allocations: 5.756 MB / 0.6276 GB, free: 161.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.437e-05/1.205, allocations: 0.8438 kB / 0.6276 GB, free: 161.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003281/1.208, allocations: 1.866 MB / 0.6295 GB, free: 161.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00343/1.212, allocations: 0.5428 MB / 0.63 GB, free: 161.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02003/1.232, allocations: 11.07 MB / 0.6408 GB, free: 157.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003583/1.235, allocations: 3.88 MB / 0.6446 GB, free: 155.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004305/1.24, allocations: 1.935 MB / 0.6465 GB, free: 155.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006627/1.24, allocations: 271.7 kB / 0.6467 GB, free: 155.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/1.24, allocations: 7.875 kB / 0.6467 GB, free: 155.8 MB / 494.1 MB Notification: Performance of Templates: time 0.0684/1.309, allocations: 42.19 MB / 0.688 GB, free: 120.6 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)