Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001002/0.001002, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005847/0.005847, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.474/1.474, allocations: 205.4 MB / 222.5 MB, free: 5.793 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.0005882/0.0005881, allocations: 12 kB / 279.5 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2713, allocations: 47.58 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04785/0.3192, allocations: 52.06 MB / 379.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02517/0.3444, allocations: 11.15 MB / 390.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01152/0.356, allocations: 227.4 kB / 390.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00256/0.3586, allocations: 0.6104 MB / 391.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008177/0.3668, allocations: 2.425 MB / 393.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002596/0.3694, allocations: 0.9127 MB / 394.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01229/0.3817, allocations: 9.431 MB / 403.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00865/0.3904, allocations: 5.726 MB / 409.6 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003579/0.3941, allocations: 1.754 MB / 411.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00459/0.3987, allocations: 3.146 MB / 414.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.3998, allocations: 239.9 kB / 414.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.4028, allocations: 1.33 MB / 416 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002656/0.4055, allocations: 2.633 MB / 418.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003156/0.4086, allocations: 2.967 MB / 421.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009992/0.4186, allocations: 9.697 MB / 431.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4187, allocations: 4 kB / 431.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4187, allocations: 0 / 431.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003405/0.419, allocations: 0 / 431.3 MB, free: 10.65 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01447/0.4335, allocations: 6.055 MB / 437.4 MB, free: 4.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.4336, allocations: 12.02 kB / 437.4 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01643/0.45, allocations: 4.04 MB / 441.5 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009232/0.4593, allocations: 4.204 MB / 445.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.4597, allocations: 316.3 kB / 446 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001871/0.4615, allocations: 427.6 kB / 446.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2279/0.6894, allocations: 15.75 MB / 462.1 MB, free: 106.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002466/0.6897, allocations: 61.56 kB / 462.2 MB, free: 106.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/0.6909, allocations: 206.2 kB / 462.4 MB, free: 106.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005735/0.6966, allocations: 3.215 MB / 465.6 MB, free: 105.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02691/0.7235, allocations: 14.15 MB / 479.8 MB, free: 97.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0673/0.7909, allocations: 57.79 MB / 0.5249 GB, free: 38.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01283/0.8038, allocations: 6.572 MB / 0.5314 GB, free: 32.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004576/0.8084, allocations: 3.68 MB / 0.535 GB, free: 28.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02111/0.8296, allocations: 14.65 MB / 0.5493 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.8296, allocations: 72.48 kB / 0.5493 GB, free: 13.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=289): time 6.362e-06/0.8297, allocations: 0 / 0.5493 GB, free: 13.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=339): time 0.1547/0.9844, allocations: 42.65 MB / 0.591 GB, free: 2.551 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.9846, allocations: 221.9 kB / 0.5912 GB, free: 2.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009021/0.9936, allocations: 5.494 MB / 0.5966 GB, free: 12.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001085/0.9947, allocations: 73.7 kB / 0.5966 GB, free: 12.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003854/0.9986, allocations: 4.354 MB / 0.6009 GB, free: 8.316 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002188/1.001, allocations: 1.253 MB / 0.6021 GB, free: 7.047 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001776/1.003, allocations: 0.7761 MB / 0.6029 GB, free: 6.262 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/1.003, allocations: 305.1 kB / 0.6032 GB, free: 5.961 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008179/1.011, allocations: 4.813 MB / 0.6079 GB, free: 1.141 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2566/1.268, allocations: 9.806 MB / 0.6174 GB, free: 137 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01799/1.286, allocations: 15.57 MB / 0.6326 GB, free: 125.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003032/1.286, allocations: 50.44 kB / 0.6327 GB, free: 125.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04659/1.333, allocations: 19.57 MB / 0.6518 GB, free: 116 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/1.333, allocations: 80 kB / 0.6519 GB, free: 115.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002219/1.333, allocations: 176.8 kB / 0.652 GB, free: 115.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02246/1.355, allocations: 5.977 MB / 0.6579 GB, free: 109.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008074/1.364, allocations: 2.109 MB / 0.6599 GB, free: 107.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0288/1.392, allocations: 24.78 MB / 0.6841 GB, free: 82.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01049/1.403, allocations: 0.5594 MB / 0.6847 GB, free: 82.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002099/1.405, allocations: 0.5167 MB / 0.6852 GB, free: 81.58 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 (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.007214/1.412, allocations: 3.098 MB / 0.6882 GB, free: 78.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/1.414, allocations: 0.4916 MB / 0.6887 GB, free: 78.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03134/1.445, allocations: 12.95 MB / 0.7014 GB, free: 65.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/1.445, allocations: 57 kB / 0.7014 GB, free: 65.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.611e-05/1.445, allocations: 8 kB / 0.7014 GB, free: 65.24 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.57e-05/1.445, allocations: 15.95 kB / 0.7014 GB, free: 65.22 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05023/1.496, allocations: 24.66 MB / 0.7255 GB, free: 40.17 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.037e-05/1.496, allocations: 8.094 kB / 0.7255 GB, free: 40.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003275/1.499, allocations: 0.5733 MB / 0.7261 GB, free: 39.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01925/1.518, allocations: 4.997 MB / 0.731 GB, free: 34.58 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008674/1.519, allocations: 59.72 kB / 0.731 GB, free: 34.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02311/1.542, allocations: 19.99 MB / 0.7505 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/1.542, allocations: 11.94 kB / 0.7505 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2984/1.841, allocations: 17.47 MB / 0.7676 GB, free: 129.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003923/1.845, allocations: 1.255 MB / 0.7688 GB, free: 129.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001613/1.846, allocations: 60.17 kB / 0.7689 GB, free: 129.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004011/1.85, allocations: 263.2 kB / 0.7691 GB, free: 129.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008952/1.851, allocations: 202.1 kB / 0.7693 GB, free: 129.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003116/1.852, allocations: 87 kB / 0.7694 GB, free: 129.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005981/1.858, allocations: 3.417 MB / 0.7728 GB, free: 128.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.858, allocations: 0 / 0.7728 GB, free: 128.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009172/1.867, allocations: 1.762 MB / 0.7745 GB, free: 128 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 (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.001198/1.868, allocations: 200.8 kB / 0.7747 GB, free: 127.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01726/1.885, allocations: 10.93 MB / 0.7853 GB, free: 123.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.848e-05/1.885, allocations: 0 / 0.7853 GB, free: 123.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006502/1.892, allocations: 4.103 MB / 0.7893 GB, free: 122.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009649/1.902, allocations: 0.5924 MB / 0.7899 GB, free: 121.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03335/1.935, allocations: 19.31 MB / 0.8088 GB, free: 107.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008226/1.943, allocations: 4.631 MB / 0.8133 GB, free: 104.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.008445/1.952, allocations: 2.963 MB / 0.8162 GB, free: 102.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001801/1.954, allocations: 355 kB / 0.8165 GB, free: 102 MB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/1.954, allocations: 0 / 0.8165 GB, free: 102 MB / 430.1 MB Notification: Performance of Templates: time 0.1172/2.071, allocations: 76.78 MB / 0.8915 GB, free: 25.61 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)