Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000782/0.000782, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.0009761/0.0009762, allocations: 183 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.2 MB / 241.2 MB, free: 5.309 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002835, allocations: 6.25 kB / 300.9 MB, free: 5.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1134, allocations: 50.43 MB / 351.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.05078/0.1643, allocations: 50.24 MB / 401.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0318/0.1962, allocations: 11.28 MB / 412.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01125/0.2075, allocations: 243.4 kB / 413.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009036/0.2165, allocations: 2.574 MB / 415.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02412/0.2407, allocations: 7.707 MB / 423.4 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004671/0.2454, allocations: 0.9088 MB / 424.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3327/0.5781, allocations: 61.93 MB / 486.2 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009881/0.588, allocations: 6.572 MB / 492.8 MB, free: 8.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003194/0.5912, allocations: 1.649 MB / 494.5 MB, free: 7.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004428/0.5957, allocations: 2.538 MB / 497 MB, free: 5.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007735/0.5965, allocations: 184 kB / 497.2 MB, free: 5.344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002879/0.5994, allocations: 1.194 MB / 498.4 MB, free: 4.398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002127/0.6015, allocations: 2.189 MB / 0.4888 GB, free: 2.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.6026, allocations: 1.043 MB / 0.4898 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008078/0.6107, allocations: 7.558 MB / 0.4972 GB, free: 11.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.6107, allocations: 0 / 0.4972 GB, free: 11.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.018e-06/0.6108, allocations: 0 / 0.4972 GB, free: 11.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003561/0.6111, allocations: 0 / 0.4972 GB, free: 11.89 MB / 398.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.01246/0.6236, allocations: 5.137 MB / 0.5022 GB, free: 7.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.6237, allocations: 12.03 kB / 0.5023 GB, free: 7.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002026/0.6257, allocations: 0.9358 MB / 0.5032 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03097/0.6567, allocations: 6.104 MB / 0.5091 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009739/0.6665, allocations: 4.304 MB / 0.5133 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/0.6667, allocations: 318.8 kB / 0.5136 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001127/0.6679, allocations: 434 kB / 0.514 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.6926, allocations: 12.31 MB / 0.5261 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002052/0.6929, allocations: 50.94 kB / 0.5261 GB, free: 3.711 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005442/0.6935, allocations: 190.3 kB / 0.5263 GB, free: 3.656 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003323/0.6968, allocations: 2.036 MB / 0.5283 GB, free: 1.992 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02007/0.7169, allocations: 10.33 MB / 0.5384 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05904/0.776, allocations: 44.12 MB / 0.5815 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01254/0.7886, allocations: 4.826 MB / 0.5862 GB, free: 10.98 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002993/0.7916, allocations: 1.962 MB / 0.5881 GB, free: 9.012 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.8031, allocations: 7 MB / 0.5949 GB, free: 1.805 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.8032, allocations: 58.09 kB / 0.595 GB, free: 1.742 MB / 478.1 MB Notification: Performance of pre-optimization done (n=179): time 4.609e-06/0.8032, allocations: 0 / 0.595 GB, free: 1.742 MB / 478.1 MB Notification: Performance of matching and sorting (n=223): time 0.2904/1.094, allocations: 19.16 MB / 0.6137 GB, free: 177.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/1.094, allocations: 209.4 kB / 0.6139 GB, free: 177.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00554/1.099, allocations: 4.458 MB / 0.6182 GB, free: 176.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003133/1.1, allocations: 58.72 kB / 0.6183 GB, free: 176.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002059/1.102, allocations: 3.566 MB / 0.6218 GB, free: 174.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008077/1.102, allocations: 0.8329 MB / 0.6226 GB, free: 174 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/1.103, allocations: 126.4 kB / 0.6227 GB, free: 173.9 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002687/1.103, allocations: 0.5686 MB / 0.6233 GB, free: 173.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/1.106, allocations: 2.204 MB / 0.6254 GB, free: 172.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004875/1.111, allocations: 5.952 MB / 0.6312 GB, free: 166 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004302/1.115, allocations: 3.565 MB / 0.6347 GB, free: 162.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-05/1.115, allocations: 36 kB / 0.6348 GB, free: 162.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01246/1.128, allocations: 8.982 MB / 0.6435 GB, free: 153.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.703e-05/1.128, allocations: 60 kB / 0.6436 GB, free: 153.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/1.128, allocations: 132.5 kB / 0.6437 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002923/1.131, allocations: 1.229 MB / 0.6449 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003576/1.134, allocations: 1.408 MB / 0.6463 GB, free: 150.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008609/1.143, allocations: 7.54 MB / 0.6537 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004258/1.147, allocations: 347.4 kB / 0.654 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008202/1.148, allocations: 379.3 kB / 0.6543 GB, free: 142.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003775/1.152, allocations: 2.474 MB / 0.6568 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007061/1.153, allocations: 410.7 kB / 0.6572 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006397/1.159, allocations: 3.877 MB / 0.6609 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.778e-05/1.159, allocations: 24 kB / 0.661 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/1.159, allocations: 8 kB / 0.661 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/1.159, allocations: 11.91 kB / 0.661 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/1.174, allocations: 10.17 MB / 0.6709 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/1.174, allocations: 8 kB / 0.6709 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/1.175, allocations: 346.9 kB / 0.6713 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00276/1.178, allocations: 0.9895 MB / 0.6722 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/1.178, allocations: 44.7 kB / 0.6723 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00725/1.186, allocations: 6.211 MB / 0.6783 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.186, allocations: 11.94 kB / 0.6783 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008739/1.194, allocations: 6.586 MB / 0.6848 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/1.196, allocations: 456.8 kB / 0.6852 GB, free: 110.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003967/1.196, allocations: 44.97 kB / 0.6853 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/1.197, allocations: 107.9 kB / 0.6854 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/1.198, allocations: 149 kB / 0.6855 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/1.198, allocations: 64.69 kB / 0.6856 GB, free: 109.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003422/1.201, allocations: 2.805 MB / 0.6883 GB, free: 107.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/1.201, allocations: 0 / 0.6883 GB, free: 107.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004462/1.206, allocations: 1.171 MB / 0.6894 GB, free: 105.9 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008735/1.214, allocations: 7.288 MB / 0.6966 GB, free: 98.58 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007723/1.222, allocations: 5.485 MB / 0.7019 GB, free: 93.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.222, allocations: 320 / 0.7019 GB, free: 93.11 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/1.224, allocations: 1.826 MB / 0.7037 GB, free: 91.27 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/1.227, allocations: 0.5554 MB / 0.7042 GB, free: 90.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0669/1.294, allocations: 40.66 MB / 0.7439 GB, free: 45.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004516/1.299, allocations: 3.871 MB / 0.7477 GB, free: 42.08 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004398/1.303, allocations: 1.926 MB / 0.7496 GB, free: 40.14 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002522/1.306, allocations: 2.296 MB / 0.7518 GB, free: 37.85 MB / 478.1 MB Notification: Performance of SimCode: time 9.01e-07/1.306, allocations: 0 / 0.7518 GB, free: 37.85 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3437/1.65, allocations: 91 MB / 0.8407 GB, free: 127.8 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/1.65, allocations: 225.2 kB / 0.8409 GB, free: 127.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.656/6.306, allocations: 0 / 0.8409 GB, free: 127.5 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)