Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.0009705/0.0009706, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001387/0.001387, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004476/0.0004479, allocations: 14.81 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2501, allocations: 47.58 MB / 326.5 MB, free: 1.609 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.06888/0.319, allocations: 48.43 MB / 374.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03162/0.3507, allocations: 10.64 MB / 385.6 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0122/0.3629, allocations: 231.4 kB / 385.8 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.3732, allocations: 2.516 MB / 388.3 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02339/0.3966, allocations: 7.596 MB / 395.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004183/0.4008, allocations: 0.8503 MB / 396.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.04778/0.4486, allocations: 36.62 MB / 433.4 MB, free: 8.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008934/0.4576, allocations: 5.037 MB / 438.4 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0054/0.463, allocations: 1.891 MB / 440.3 MB, free: 1.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00529/0.4684, allocations: 3.12 MB / 443.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001579/0.47, allocations: 236 kB / 443.6 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003662/0.4737, allocations: 1.123 MB / 444.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004199/0.4779, allocations: 2.579 MB / 447.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002837/0.4808, allocations: 1.189 MB / 448.5 MB, free: 9.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.491, allocations: 7.965 MB / 456.5 MB, free: 1.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.491, allocations: 0 / 456.5 MB, free: 1.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.491, allocations: 0 / 456.5 MB, free: 1.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004318/0.4915, allocations: 0 / 456.5 MB, free: 1.266 MB / 382.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.2113/0.7027, allocations: 6.132 MB / 462.6 MB, free: 116.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.7028, allocations: 12.53 kB / 462.6 MB, free: 116.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01528/0.7181, allocations: 4.044 MB / 466.7 MB, free: 114.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009454/0.7276, allocations: 4.133 MB / 470.8 MB, free: 110.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002609/0.7279, allocations: 325.7 kB / 471.1 MB, free: 110.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.7294, allocations: 434.6 kB / 471.6 MB, free: 109.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02646/0.7559, allocations: 15.71 MB / 487.3 MB, free: 93.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001577/0.7561, allocations: 59.47 kB / 487.3 MB, free: 93.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006946/0.7568, allocations: 202.3 kB / 487.5 MB, free: 93.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00401/0.7608, allocations: 3.223 MB / 490.7 MB, free: 90.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02624/0.7871, allocations: 14.08 MB / 0.493 GB, free: 76.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07266/0.8598, allocations: 57.76 MB / 0.5494 GB, free: 16.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01286/0.8727, allocations: 6.555 MB / 0.5558 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004573/0.8774, allocations: 3.677 MB / 0.5594 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02556/0.903, allocations: 14.64 MB / 0.5737 GB, free: 7.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.236e-05/0.9031, allocations: 68.48 kB / 0.5738 GB, free: 7.102 MB / 398.1 MB Notification: Performance of pre-optimization done (n=289): time 8.466e-06/0.9031, allocations: 0 / 0.5738 GB, free: 7.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=339): time 0.3534/1.257, allocations: 42.62 MB / 0.6154 GB, free: 148.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/1.257, allocations: 212 kB / 0.6156 GB, free: 148 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00773/1.264, allocations: 5.471 MB / 0.6209 GB, free: 146.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008619/1.265, allocations: 78.38 kB / 0.621 GB, free: 146.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002658/1.268, allocations: 4.352 MB / 0.6252 GB, free: 143.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001668/1.27, allocations: 1.264 MB / 0.6265 GB, free: 143 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005902/1.27, allocations: 176.2 kB / 0.6266 GB, free: 142.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0004276/1.271, allocations: 0.6966 MB / 0.6273 GB, free: 142.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005936/1.277, allocations: 4.77 MB / 0.632 GB, free: 140.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008401/1.285, allocations: 9.776 MB / 0.6415 GB, free: 131.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009644/1.295, allocations: 6.66 MB / 0.648 GB, free: 127.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001471/1.295, allocations: 48 kB / 0.6481 GB, free: 127.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04106/1.336, allocations: 19.5 MB / 0.6671 GB, free: 108 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002386/1.336, allocations: 80 kB / 0.6672 GB, free: 107.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003478/1.337, allocations: 176 kB / 0.6674 GB, free: 107.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01925/1.356, allocations: 5.991 MB / 0.6732 GB, free: 101.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008146/1.364, allocations: 2.113 MB / 0.6753 GB, free: 99.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02933/1.393, allocations: 24.76 MB / 0.6995 GB, free: 74.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008922/1.402, allocations: 0.563 MB / 0.7 GB, free: 74.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/1.405, allocations: 0.5127 MB / 0.7005 GB, free: 73.52 MB / 430.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007604/1.412, allocations: 3.1 MB / 0.7035 GB, free: 70.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001669/1.414, allocations: 0.4898 MB / 0.704 GB, free: 69.9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02879/1.443, allocations: 12.93 MB / 0.7167 GB, free: 56.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/1.443, allocations: 58.59 kB / 0.7167 GB, free: 56.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.666e-05/1.443, allocations: 11.95 kB / 0.7167 GB, free: 56.83 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.87e-05/1.443, allocations: 15.94 kB / 0.7167 GB, free: 56.82 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05018/1.493, allocations: 24.63 MB / 0.7408 GB, free: 31.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.034e-05/1.493, allocations: 6.156 kB / 0.7408 GB, free: 31.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002946/1.496, allocations: 0.5817 MB / 0.7414 GB, free: 31.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01641/1.513, allocations: 4.99 MB / 0.7462 GB, free: 26.12 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001009/1.514, allocations: 60.61 kB / 0.7463 GB, free: 26.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02391/1.538, allocations: 19.99 MB / 0.7658 GB, free: 5.812 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/1.538, allocations: 7.938 kB / 0.7658 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2718/1.81, allocations: 17.43 MB / 0.7828 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003442/1.813, allocations: 1.26 MB / 0.7841 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001627/1.815, allocations: 56.42 kB / 0.7841 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003401/1.818, allocations: 261.7 kB / 0.7844 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006723/1.819, allocations: 203.6 kB / 0.7846 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002656/1.819, allocations: 87.55 kB / 0.7847 GB, free: 130.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006732/1.826, allocations: 3.388 MB / 0.788 GB, free: 129.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.092e-06/1.826, allocations: 0 / 0.788 GB, free: 129.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01022/1.836, allocations: 1.761 MB / 0.7897 GB, free: 129.1 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009664/1.837, allocations: 207 kB / 0.7899 GB, free: 128.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01521/1.852, allocations: 10.89 MB / 0.8005 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/1.852, allocations: 0 / 0.8005 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00525/1.858, allocations: 4.084 MB / 0.8045 GB, free: 116.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004697/1.862, allocations: 0.6019 MB / 0.8051 GB, free: 116.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02363/1.886, allocations: 18.62 MB / 0.8233 GB, free: 98.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005056/1.891, allocations: 4.627 MB / 0.8278 GB, free: 93.88 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.006808/1.898, allocations: 2.966 MB / 0.8307 GB, free: 90.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/1.899, allocations: 359.4 kB / 0.831 GB, free: 90.55 MB / 430.1 MB Notification: Performance of SimCode: time 1.173e-06/1.9, allocations: 1.641 kB / 0.831 GB, free: 90.55 MB / 430.1 MB Notification: Performance of Templates: time 0.1018/2.001, allocations: 75.3 MB / 0.9046 GB, free: 15.05 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)