Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001054/0.001054, allocations: 195 kB / 18 MB, free: 5.074 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.36/1.36, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001161/0.001161, allocations: 47.94 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1013, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.252/0.3533, allocations: 15.07 MB / 389.6 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01389/0.3673, allocations: 4.816 MB / 394.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004879/0.3722, allocations: 92.94 kB / 394.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007878/0.3802, allocations: 3.17 MB / 397.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01166/0.3919, allocations: 2.555 MB / 400.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003538/0.3955, allocations: 0.9931 MB / 401.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01427/0.4098, allocations: 6.645 MB / 407.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007747/0.4176, allocations: 4.35 MB / 412.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005845/0.4234, allocations: 2.24 MB / 414.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006944/0.4304, allocations: 3.244 MB / 417.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002338/0.4328, allocations: 487.9 kB / 418.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005425/0.4383, allocations: 1.49 MB / 419.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005227/0.4435, allocations: 2.86 MB / 422.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007178/0.4507, allocations: 3.254 MB / 425.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01731/0.4681, allocations: 10.49 MB / 436.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4681, allocations: 0 / 436.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4681, allocations: 0 / 436.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004568/0.4686, allocations: 0 / 436.2 MB, free: 1.625 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0231/0.4917, allocations: 7.475 MB / 443.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.257e-05/0.4918, allocations: 12.03 kB / 443.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01741/0.5092, allocations: 3.978 MB / 447.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.521, allocations: 4.288 MB / 452 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002918/0.5213, allocations: 324.6 kB / 452.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001981/0.5233, allocations: 431.6 kB / 452.7 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03041/0.5537, allocations: 15.71 MB / 468.4 MB, free: 332 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/0.554, allocations: 59.52 kB / 468.5 MB, free: 272 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000786/0.5548, allocations: 207.8 kB / 468.7 MB, free: 64 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005221/0.56, allocations: 3.216 MB / 471.9 MB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03118/0.5912, allocations: 14.12 MB / 486 MB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09696/0.6882, allocations: 57.6 MB / 0.5309 GB, free: 3.531 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01528/0.7036, allocations: 6.57 MB / 0.5373 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005788/0.7094, allocations: 3.684 MB / 0.5409 GB, free: 9.012 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2921/1.001, allocations: 14.66 MB / 0.5552 GB, free: 144.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.442e-05/1.002, allocations: 66.48 kB / 0.5553 GB, free: 144.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 6.552e-06/1.002, allocations: 1.5 kB / 0.5553 GB, free: 144.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1466/1.148, allocations: 42.72 MB / 0.597 GB, free: 126.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/1.148, allocations: 210 kB / 0.5972 GB, free: 126.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007302/1.156, allocations: 5.517 MB / 0.6026 GB, free: 120.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001007/1.157, allocations: 69.7 kB / 0.6027 GB, free: 120.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002357/1.159, allocations: 4.538 MB / 0.6071 GB, free: 116.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001489/1.161, allocations: 1.314 MB / 0.6084 GB, free: 115.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002376/1.163, allocations: 1.865 MB / 0.6102 GB, free: 113.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.094e-05/1.163, allocations: 309 kB / 0.6105 GB, free: 113.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005302/1.168, allocations: 4.804 MB / 0.6152 GB, free: 108.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007686/1.176, allocations: 9.801 MB / 0.6247 GB, free: 96.01 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01567/1.192, allocations: 15.58 MB / 0.64 GB, free: 77.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001688/1.192, allocations: 52 kB / 0.64 GB, free: 77.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04284/1.235, allocations: 19.59 MB / 0.6591 GB, free: 58.28 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/1.235, allocations: 80.19 kB / 0.6592 GB, free: 58.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/1.235, allocations: 176 kB / 0.6594 GB, free: 58.03 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0227/1.258, allocations: 5.937 MB / 0.6652 GB, free: 52.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007919/1.266, allocations: 2.117 MB / 0.6672 GB, free: 49.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02887/1.295, allocations: 26.15 MB / 0.6928 GB, free: 23.53 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008699/1.304, allocations: 0.5618 MB / 0.6933 GB, free: 22.96 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/1.305, allocations: 0.5164 MB / 0.6938 GB, free: 22.45 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005772/1.311, allocations: 3.095 MB / 0.6969 GB, free: 19.34 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/1.312, allocations: 0.5227 MB / 0.6974 GB, free: 18.82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02883/1.341, allocations: 12.93 MB / 0.71 GB, free: 5.82 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.571e-05/1.341, allocations: 52 kB / 0.7101 GB, free: 5.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.223e-05/1.341, allocations: 8 kB / 0.7101 GB, free: 5.762 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.992e-05/1.342, allocations: 19.94 kB / 0.7101 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3123/1.654, allocations: 24.51 MB / 0.734 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-05/1.654, allocations: 8.812 kB / 0.734 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003515/1.657, allocations: 0.5718 MB / 0.7346 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02043/1.678, allocations: 4.982 MB / 0.7394 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001113/1.679, allocations: 53.22 kB / 0.7395 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02756/1.707, allocations: 21.35 MB / 0.7603 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/1.707, allocations: 11.12 kB / 0.7604 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03397/1.741, allocations: 17.49 MB / 0.7774 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003535/1.744, allocations: 1.273 MB / 0.7787 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001649/1.746, allocations: 53.53 kB / 0.7787 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003628/1.75, allocations: 261.1 kB / 0.779 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007951/1.75, allocations: 199.1 kB / 0.7792 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002902/1.751, allocations: 82.66 kB / 0.7792 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005896/1.757, allocations: 3.424 MB / 0.7826 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.757, allocations: 0 / 0.7826 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009388/1.766, allocations: 1.76 MB / 0.7843 GB, free: 124.1 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00098/1.767, allocations: 213.1 kB / 0.7845 GB, free: 123.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01584/1.783, allocations: 10.97 MB / 0.7952 GB, free: 113 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/1.783, allocations: 7.719 kB / 0.7952 GB, free: 113 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006713/1.79, allocations: 4.106 MB / 0.7992 GB, free: 108.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00508/1.795, allocations: 0.6259 MB / 0.7998 GB, free: 108.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02522/1.82, allocations: 16.26 MB / 0.8157 GB, free: 92.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006548/1.827, allocations: 4.621 MB / 0.8202 GB, free: 87.46 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007553/1.834, allocations: 2.974 MB / 0.8231 GB, free: 84.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002031/1.836, allocations: 351.4 kB / 0.8235 GB, free: 84.23 MB / 494.1 MB Notification: Performance of SimCode: time 7.62e-07/1.836, allocations: 4 kB / 0.8235 GB, free: 84.22 MB / 494.1 MB Notification: Performance of Templates: time 0.1164/1.953, allocations: 76.94 MB / 0.8986 GB, free: 7.117 MB / 494.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)