Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.002305/0.002312, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.509/2.509, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 95.56 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.253e-05/3.267e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3443, allocations: 47.56 MB / 362.4 MB, free: 45.77 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1715/0.5158, allocations: 102.7 MB / 465.1 MB, free: 15.48 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/0.5162, allocations: 91.94 kB / 465.2 MB, free: 15.39 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7107/1.227, allocations: 108.9 MB / 0.5606 GB, free: 81.82 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.894e-06/1.227, allocations: 0 / 0.5606 GB, free: 81.82 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003961/1.227, allocations: 102.9 kB / 0.5607 GB, free: 81.73 MB / 395.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.01939/1.247, allocations: 4.927 MB / 0.5655 GB, free: 76.75 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/1.247, allocations: 8.031 kB / 0.5655 GB, free: 76.74 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04922/1.296, allocations: 6.9 MB / 0.5723 GB, free: 69.82 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02506/1.321, allocations: 6.773 MB / 0.5789 GB, free: 63.05 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003186/1.322, allocations: 168 kB / 0.5791 GB, free: 62.89 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002582/1.324, allocations: 311.8 kB / 0.5794 GB, free: 62.59 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01824/1.342, allocations: 7.497 MB / 0.5867 GB, free: 55.09 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02602/1.369, allocations: 10.65 MB / 0.5971 GB, free: 43.48 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002748/1.369, allocations: 63.41 kB / 0.5971 GB, free: 43.42 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0015/1.37, allocations: 28 kB / 0.5972 GB, free: 43.39 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002056/1.372, allocations: 1.055 MB / 0.5982 GB, free: 42.34 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07316/1.446, allocations: 48.47 MB / 0.6455 GB, free: 8.617 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00688/1.453, allocations: 3.146 MB / 0.6486 GB, free: 5.32 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003947/1.457, allocations: 1.786 MB / 0.6503 GB, free: 3.523 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002116/1.459, allocations: 1.213 MB / 0.6515 GB, free: 2.117 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.279e-05/1.459, allocations: 63.73 kB / 0.6516 GB, free: 2.047 MB / 411.1 MB Notification: Performance of pre-optimization done (n=185): time 6.202e-06/1.459, allocations: 0 / 0.6516 GB, free: 2.047 MB / 411.1 MB Notification: Performance of matching and sorting (n=233): time 0.3623/1.821, allocations: 16.17 MB / 0.6674 GB, free: 91.52 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.076e-05/1.821, allocations: 207.2 kB / 0.6676 GB, free: 91.3 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009988/1.831, allocations: 3.485 MB / 0.671 GB, free: 90.92 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005291/1.832, allocations: 29.58 kB / 0.671 GB, free: 90.89 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003154/1.835, allocations: 3.534 MB / 0.6745 GB, free: 88.88 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001395/1.837, allocations: 0.8428 MB / 0.6753 GB, free: 88.38 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007862/1.837, allocations: 0 / 0.6753 GB, free: 88.38 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0004864/1.838, allocations: 0.5874 MB / 0.6758 GB, free: 88.05 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004999/1.843, allocations: 2.053 MB / 0.6779 GB, free: 88.04 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007689/1.851, allocations: 5.911 MB / 0.6836 GB, free: 83.04 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007501/1.858, allocations: 3.473 MB / 0.687 GB, free: 83.01 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001627/1.858, allocations: 37.41 kB / 0.6871 GB, free: 83.01 MB / 411.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.02388/1.882, allocations: 7.88 MB / 0.6947 GB, free: 81.39 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/1.882, allocations: 67.58 kB / 0.6948 GB, free: 81.39 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002011/1.883, allocations: 139.4 kB / 0.6949 GB, free: 81.39 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005512/1.888, allocations: 1.022 MB / 0.6959 GB, free: 81.19 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008812/1.897, allocations: 1.479 MB / 0.6974 GB, free: 81.01 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/1.911, allocations: 6.538 MB / 0.7038 GB, free: 77.49 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007951/1.919, allocations: 210 kB / 0.704 GB, free: 77.46 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00166/1.921, allocations: 398.3 kB / 0.7044 GB, free: 77.41 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * 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.001847/1.923, allocations: 458.5 kB / 0.7048 GB, free: 77.04 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01189/1.935, allocations: 3.725 MB / 0.7084 GB, free: 75.7 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001522/1.936, allocations: 386.7 kB / 0.7088 GB, free: 75.49 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.948, allocations: 3.444 MB / 0.7122 GB, free: 74.21 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.97e-05/1.948, allocations: 27.03 kB / 0.7122 GB, free: 74.21 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/1.948, allocations: 7.875 kB / 0.7122 GB, free: 74.21 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.686e-05/1.948, allocations: 13.3 kB / 0.7122 GB, free: 74.21 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02814/1.976, allocations: 8.926 MB / 0.7209 GB, free: 68.99 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.164e-05/1.976, allocations: 9.812 kB / 0.7209 GB, free: 68.98 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003243/1.979, allocations: 368.9 kB / 0.7213 GB, free: 68.69 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004769/1.984, allocations: 0.7864 MB / 0.7221 GB, free: 68.14 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004075/1.985, allocations: 19.83 kB / 0.7221 GB, free: 68.13 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/1.995, allocations: 5.257 MB / 0.7272 GB, free: 63.43 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/1.995, allocations: 11.94 kB / 0.7272 GB, free: 63.42 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01511/2.011, allocations: 6.897 MB / 0.734 GB, free: 56.96 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002878/2.013, allocations: 0.7 MB / 0.7346 GB, free: 56.29 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/2.015, allocations: 8 kB / 0.7346 GB, free: 56.28 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003269/2.018, allocations: 71.52 kB / 0.7347 GB, free: 56.24 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005044/2.019, allocations: 153.6 kB / 0.7349 GB, free: 56.14 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/2.019, allocations: 67.94 kB / 0.7349 GB, free: 56.07 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005251/2.024, allocations: 2.349 MB / 0.7372 GB, free: 54.02 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.022e-06/2.024, allocations: 0 / 0.7372 GB, free: 54.02 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.008595/2.033, allocations: 1.024 MB / 0.7382 GB, free: 53.01 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 181 * 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.01666/2.049, allocations: 8.982 MB / 0.747 GB, free: 44.65 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0111/2.061, allocations: 5.104 MB / 0.752 GB, free: 39.99 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/2.061, allocations: 0.5625 kB / 0.752 GB, free: 39.99 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003771/2.064, allocations: 1.739 MB / 0.7537 GB, free: 38.4 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/2.069, allocations: 438.1 kB / 0.7541 GB, free: 38.03 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03496/2.104, allocations: 11.11 MB / 0.7649 GB, free: 28.33 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008816/2.113, allocations: 3.996 MB / 0.7688 GB, free: 25.33 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005434/2.118, allocations: 2.35 MB / 0.7711 GB, free: 23.14 MB / 411.1 MB Notification: Performance of SimCode: time 1.953e-06/2.118, allocations: 0 / 0.7711 GB, free: 23.14 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.737/6.855, allocations: 116.1 MB / 0.8845 GB, free: 64.11 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)