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.001222/0.001223, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001322/0.001322, allocations: 192.2 kB / 16.25 MB, free: 6.625 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.557/1.557, allocations: 205.1 MB / 222.1 MB, free: 4.746 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.001427/0.001427, allocations: 51.92 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2705, allocations: 46.62 MB / 324.8 MB, free: 1.965 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.05907/0.3297, allocations: 55.45 MB / 380.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03077/0.3605, allocations: 11.8 MB / 392.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01498/0.3756, allocations: 243.4 kB / 392.3 MB, free: 396 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00794/0.3836, allocations: 4.052 MB / 396.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006962/0.3906, allocations: 2.013 MB / 398.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003106/0.3937, allocations: 1.034 MB / 399.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009738/0.4034, allocations: 5.876 MB / 405.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01007/0.4135, allocations: 5.597 MB / 410.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004536/0.4181, allocations: 2.204 MB / 413.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005597/0.4238, allocations: 3.171 MB / 416.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.4251, allocations: 0.4922 MB / 416.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003504/0.4286, allocations: 1.65 MB / 418.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002815/0.4315, allocations: 2.615 MB / 421 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003578/0.4351, allocations: 2.93 MB / 424 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4465, allocations: 9.351 MB / 433.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4465, allocations: 0 / 433.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4465, allocations: 0 / 433.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003366/0.4469, allocations: 0 / 433.3 MB, free: 7.23 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.0175/0.4644, allocations: 6.036 MB / 439.4 MB, free: 1.117 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.4645, allocations: 8.031 kB / 439.4 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/0.4762, allocations: 2.537 MB / 441.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009967/0.4862, allocations: 3.851 MB / 445.8 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003197/0.4865, allocations: 308.3 kB / 446.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002002/0.4885, allocations: 447.5 kB / 446.5 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2448/0.7334, allocations: 12.4 MB / 458.9 MB, free: 109.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000246/0.7337, allocations: 50.06 kB / 458.9 MB, free: 109.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007303/0.7344, allocations: 192.4 kB / 459.1 MB, free: 109.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003373/0.7378, allocations: 2.027 MB / 461.2 MB, free: 109.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02121/0.759, allocations: 10.57 MB / 471.7 MB, free: 104.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05165/0.8107, allocations: 44.37 MB / 0.504 GB, free: 60.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.8224, allocations: 4.849 MB / 0.5087 GB, free: 55.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002384/0.8248, allocations: 2.004 MB / 0.5107 GB, free: 53.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/0.8355, allocations: 7.121 MB / 0.5176 GB, free: 46.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.8356, allocations: 55.56 kB / 0.5177 GB, free: 46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 5.179e-06/0.8356, allocations: 0 / 0.5177 GB, free: 46 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.06451/0.9001, allocations: 19.64 MB / 0.5369 GB, free: 26.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.9003, allocations: 205.9 kB / 0.5371 GB, free: 26.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005934/0.9062, allocations: 4.496 MB / 0.5415 GB, free: 21.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004812/0.9067, allocations: 57.7 kB / 0.5415 GB, free: 21.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00159/0.9083, allocations: 3.513 MB / 0.545 GB, free: 17.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007648/0.9091, allocations: 0.8445 MB / 0.5458 GB, free: 17.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001427/0.9105, allocations: 1.341 MB / 0.5471 GB, free: 15.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.43e-05/0.9106, allocations: 313 kB / 0.5474 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/0.9132, allocations: 2.359 MB / 0.5497 GB, free: 13.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003983/0.9172, allocations: 6.163 MB / 0.5557 GB, free: 5.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009572/0.9268, allocations: 9.161 MB / 0.5647 GB, free: 9.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.553e-05/0.9269, allocations: 44 kB / 0.5647 GB, free: 9.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01864/0.9456, allocations: 9.541 MB / 0.574 GB, free: 384 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.9458, allocations: 64.94 kB / 0.5741 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002582/0.946, allocations: 132.9 kB / 0.5742 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004298/0.9503, allocations: 1.378 MB / 0.5755 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005015/0.9554, allocations: 1.478 MB / 0.577 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/0.9681, allocations: 8.516 MB / 0.5853 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005394/0.9735, allocations: 351.5 kB / 0.5856 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001283/0.9748, allocations: 392 kB / 0.586 GB, free: 3.938 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.005461/0.9803, allocations: 2.493 MB / 0.5885 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/0.9815, allocations: 402.8 kB / 0.5888 GB, free: 1.039 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009765/0.9913, allocations: 4.126 MB / 0.5929 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-05/0.9914, allocations: 24 kB / 0.5929 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-05/0.9914, allocations: 8 kB / 0.5929 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-05/0.9914, allocations: 11.95 kB / 0.5929 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02883/1.02, allocations: 10.36 MB / 0.603 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.408e-05/1.02, allocations: 4 kB / 0.603 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/1.022, allocations: 347.5 kB / 0.6034 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003902/1.026, allocations: 1.152 MB / 0.6045 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003653/1.026, allocations: 47.98 kB / 0.6045 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1981/1.225, allocations: 7.135 MB / 0.6115 GB, free: 140.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/1.225, allocations: 11.8 kB / 0.6115 GB, free: 140.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/1.235, allocations: 6.92 MB / 0.6183 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001682/1.237, allocations: 0.7379 MB / 0.619 GB, free: 137.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005338/1.237, allocations: 39.66 kB / 0.619 GB, free: 137.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/1.239, allocations: 114.1 kB / 0.6191 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003635/1.239, allocations: 139.7 kB / 0.6193 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/1.239, allocations: 64.91 kB / 0.6193 GB, free: 137.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003658/1.243, allocations: 2.826 MB / 0.6221 GB, free: 136.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.082e-06/1.243, allocations: 0 / 0.6221 GB, free: 136.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005827/1.249, allocations: 1.213 MB / 0.6233 GB, free: 136.2 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.0006308/1.249, allocations: 228.6 kB / 0.6235 GB, free: 136.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01108/1.26, allocations: 6.854 MB / 0.6302 GB, free: 134 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/1.26, allocations: 6.25 kB / 0.6302 GB, free: 134 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002554/1.263, allocations: 1.875 MB / 0.632 GB, free: 132.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003965/1.267, allocations: 0.5366 MB / 0.6325 GB, free: 132 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02424/1.291, allocations: 13.62 MB / 0.6458 GB, free: 119.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006643/1.298, allocations: 3.875 MB / 0.6496 GB, free: 115.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005456/1.303, allocations: 1.926 MB / 0.6515 GB, free: 113.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/1.305, allocations: 275.4 kB / 0.6518 GB, free: 113.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.362e-06/1.305, allocations: 0 / 0.6518 GB, free: 113.4 MB / 430.1 MB Notification: Performance of Templates: time 0.08031/1.385, allocations: 45.87 MB / 0.6966 GB, free: 67.5 MB / 430.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)