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.0009652/0.0009653, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0008359/0.0008359, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.534/1.534, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0004969/0.0004967, allocations: 15.94 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1165, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.266/0.3825, allocations: 52.06 MB / 380.4 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03288/0.4154, allocations: 11.15 MB / 391.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01276/0.4282, allocations: 229.9 kB / 391.8 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002844/0.4311, allocations: 0.6162 MB / 392.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008266/0.4394, allocations: 2.408 MB / 394.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002705/0.4421, allocations: 0.9266 MB / 395.7 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0133/0.4555, allocations: 9.436 MB / 405.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009887/0.4654, allocations: 5.737 MB / 410.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004774/0.4702, allocations: 1.752 MB / 412.6 MB, free: 292 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006004/0.4763, allocations: 3.139 MB / 415.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001598/0.4779, allocations: 240 kB / 416 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003762/0.4817, allocations: 1.328 MB / 417.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003366/0.4851, allocations: 2.639 MB / 420 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004686/0.4898, allocations: 2.976 MB / 423 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.5016, allocations: 9.694 MB / 432.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.5017, allocations: 0 / 432.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.407e-06/0.5017, allocations: 0 / 432.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003875/0.5021, allocations: 0 / 432.6 MB, free: 14.12 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.01563/0.5177, allocations: 6.06 MB / 438.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.5178, allocations: 15.97 kB / 438.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01712/0.5349, allocations: 4.031 MB / 442.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009913/0.5449, allocations: 4.201 MB / 447 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003134/0.5452, allocations: 320 kB / 447.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002035/0.5473, allocations: 431 kB / 447.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/0.5764, allocations: 15.75 MB / 463.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001965/0.5767, allocations: 59.47 kB / 463.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007428/0.5774, allocations: 203.9 kB / 463.7 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005195/0.5826, allocations: 3.216 MB / 466.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02866/0.6113, allocations: 14.14 MB / 481 MB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0742/0.6855, allocations: 57.79 MB / 0.5262 GB, free: 2.008 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01376/0.6993, allocations: 6.564 MB / 0.5326 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0054/0.7048, allocations: 3.681 MB / 0.5362 GB, free: 7.504 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2394/0.9442, allocations: 14.66 MB / 0.5505 GB, free: 174.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.729e-05/0.9443, allocations: 63.2 kB / 0.5506 GB, free: 174.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 1.035e-05/0.9444, allocations: 1.469 kB / 0.5506 GB, free: 174.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1492/1.094, allocations: 42.65 MB / 0.5922 GB, free: 149 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/1.094, allocations: 221.9 kB / 0.5925 GB, free: 148.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008092/1.102, allocations: 5.494 MB / 0.5978 GB, free: 143.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001287/1.103, allocations: 76.05 kB / 0.5979 GB, free: 143.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002696/1.106, allocations: 4.348 MB / 0.6021 GB, free: 138.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001709/1.108, allocations: 1.263 MB / 0.6034 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001018/1.109, allocations: 0.7811 MB / 0.6041 GB, free: 136.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.561e-05/1.109, allocations: 301.1 kB / 0.6044 GB, free: 136.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006164/1.115, allocations: 4.808 MB / 0.6091 GB, free: 131.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008209/1.123, allocations: 9.8 MB / 0.6187 GB, free: 119.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01619/1.139, allocations: 15.58 MB / 0.6339 GB, free: 101.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001551/1.14, allocations: 52 kB / 0.634 GB, free: 101.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04642/1.186, allocations: 19.57 MB / 0.6531 GB, free: 81.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002528/1.186, allocations: 83.94 kB / 0.6531 GB, free: 81.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003065/1.187, allocations: 172.9 kB / 0.6533 GB, free: 81.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02269/1.209, allocations: 5.975 MB / 0.6591 GB, free: 75.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007517/1.217, allocations: 2.109 MB / 0.6612 GB, free: 73.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02831/1.245, allocations: 24.79 MB / 0.6854 GB, free: 48.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008944/1.254, allocations: 0.5624 MB / 0.686 GB, free: 47.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002086/1.256, allocations: 0.5133 MB / 0.6865 GB, free: 47.25 MB / 462.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.006852/1.263, allocations: 3.092 MB / 0.6895 GB, free: 44.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001551/1.265, allocations: 0.4935 MB / 0.69 GB, free: 43.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03094/1.296, allocations: 12.96 MB / 0.7026 GB, free: 30.62 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/1.296, allocations: 55.98 kB / 0.7027 GB, free: 30.56 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.345e-05/1.296, allocations: 8 kB / 0.7027 GB, free: 30.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.998e-05/1.296, allocations: 11.95 kB / 0.7027 GB, free: 30.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.293/1.589, allocations: 24.65 MB / 0.7268 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-05/1.589, allocations: 7.547 kB / 0.7268 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003091/1.592, allocations: 0.5841 MB / 0.7273 GB, free: 154.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/1.611, allocations: 5 MB / 0.7322 GB, free: 154.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007197/1.612, allocations: 56.56 kB / 0.7323 GB, free: 154.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02297/1.635, allocations: 20 MB / 0.7518 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/1.635, allocations: 3.938 kB / 0.7518 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03346/1.669, allocations: 17.47 MB / 0.7689 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003528/1.672, allocations: 1.268 MB / 0.7701 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/1.673, allocations: 52 kB / 0.7702 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003167/1.677, allocations: 263.6 kB / 0.7704 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000744/1.677, allocations: 192.5 kB / 0.7706 GB, free: 127.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002426/1.678, allocations: 80 kB / 0.7707 GB, free: 127 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004934/1.683, allocations: 3.418 MB / 0.774 GB, free: 123.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.683, allocations: 0 / 0.774 GB, free: 123.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008988/1.692, allocations: 1.766 MB / 0.7757 GB, free: 121.8 MB / 462.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.000858/1.692, allocations: 210.4 kB / 0.7759 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01573/1.708, allocations: 10.92 MB / 0.7866 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/1.708, allocations: 4 kB / 0.7866 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005532/1.714, allocations: 4.106 MB / 0.7906 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007636/1.721, allocations: 0.5875 MB / 0.7912 GB, free: 106.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0264/1.748, allocations: 19.3 MB / 0.81 GB, free: 86.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005175/1.753, allocations: 4.635 MB / 0.8146 GB, free: 82.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008128/1.761, allocations: 2.97 MB / 0.8175 GB, free: 79.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001729/1.763, allocations: 351.4 kB / 0.8178 GB, free: 78.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.283e-06/1.763, allocations: 4 kB / 0.8178 GB, free: 78.9 MB / 462.1 MB Notification: Performance of Templates: time 0.3514/2.114, allocations: 76.76 MB / 0.8928 GB, free: 141 MB / 462.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)