Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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.00151/0.001514, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001174/0.001173, allocations: 84.44 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5232/0.5232, allocations: 43.55 MB / 362.7 MB, free: 52.24 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004683/0.0004683, allocations: 8 kB / 431.5 MB, free: 6.09 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.134, allocations: 58.84 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5134/0.6474, allocations: 117.6 MB / 0.5936 GB, free: 1.086 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.6478, allocations: 75.97 kB / 0.5937 GB, free: 1.012 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062/1.71, allocations: 172.2 MB / 0.7618 GB, free: 81.79 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.552e-06/1.71, allocations: 3.984 kB / 0.7618 GB, free: 81.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004808/1.71, allocations: 152.8 kB / 0.762 GB, free: 81.77 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.0416/1.752, allocations: 8.235 MB / 0.77 GB, free: 76.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/1.752, allocations: 11.84 kB / 0.77 GB, free: 76.52 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01074/1.763, allocations: 1.632 MB / 0.7716 GB, free: 75.58 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07097/1.834, allocations: 6.942 MB / 0.7784 GB, free: 72.24 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03507/1.869, allocations: 9.893 MB / 0.7881 GB, free: 62.54 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007906/1.87, allocations: 0.5706 MB / 0.7886 GB, free: 62.02 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005179/1.875, allocations: 0.7688 MB / 0.7894 GB, free: 61.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06919/1.944, allocations: 20.78 MB / 0.8097 GB, free: 39.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006798/1.945, allocations: 95.12 kB / 0.8098 GB, free: 39.15 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005018/1.95, allocations: 359.6 kB / 0.8101 GB, free: 38.85 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004841/1.955, allocations: 1.956 MB / 0.812 GB, free: 36.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06156/2.016, allocations: 18.32 MB / 0.8299 GB, free: 18.57 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5512/2.568, allocations: 82.28 MB / 0.9103 GB, free: 54.56 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0297/2.597, allocations: 7.353 MB / 0.9174 GB, free: 53.31 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05175/2.649, allocations: 18.23 MB / 0.9352 GB, free: 48.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.195e-05/2.649, allocations: 67.19 kB / 0.9353 GB, free: 48.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=332): time 7.605e-06/2.649, allocations: 0 / 0.9353 GB, free: 48.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=413): time 0.2313/2.881, allocations: 36.24 MB / 0.9707 GB, free: 42 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/2.881, allocations: 192 kB / 0.9709 GB, free: 41.81 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01627/2.897, allocations: 5.839 MB / 0.9766 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001073/2.898, allocations: 86.84 kB / 0.9767 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005339/2.904, allocations: 5.268 MB / 0.9818 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002722/2.906, allocations: 1.516 MB / 0.9833 GB, free: 34.56 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001796/2.908, allocations: 208.4 kB / 0.9835 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001073/2.909, allocations: 0.7582 MB / 0.9842 GB, free: 33.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01218/2.922, allocations: 4.184 MB / 0.9883 GB, free: 32.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01666/2.938, allocations: 10.02 MB / 0.9981 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/2.955, allocations: 6.346 MB / 1.004 GB, free: 20.92 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002756/2.955, allocations: 63.59 kB / 1.004 GB, free: 20.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.05446/3.01, allocations: 15.77 MB / 1.02 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002091/3.01, allocations: 92 kB / 1.02 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004856/3.01, allocations: 204.8 kB / 1.02 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01521/3.026, allocations: 2.363 MB / 1.022 GB, free: 12.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01709/3.043, allocations: 2.442 MB / 1.025 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03732/3.08, allocations: 12.03 MB / 1.036 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01383/3.094, allocations: 0.6955 MB / 1.037 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002959/3.097, allocations: 0.5876 MB / 1.038 GB, free: 14.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1272): * Single equations (assignments): 1265 * Array equations: 6 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01301/3.11, allocations: 3.766 MB / 1.041 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002456/3.112, allocations: 0.5977 MB / 1.042 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03565/3.148, allocations: 8.175 MB / 1.05 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001449/3.148, allocations: 58.53 kB / 1.05 GB, free: 4.301 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.28e-05/3.148, allocations: 15.14 kB / 1.05 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.103e-05/3.148, allocations: 15.8 kB / 1.05 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07217/3.221, allocations: 18.83 MB / 1.068 GB, free: 4.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.525e-05/3.221, allocations: 16.94 kB / 1.068 GB, free: 4.504 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00617/3.227, allocations: 0.6466 MB / 1.069 GB, free: 3.859 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01377/3.241, allocations: 1.889 MB / 1.071 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009856/3.242, allocations: 85.78 kB / 1.071 GB, free: 1.891 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4332/3.675, allocations: 10.33 MB / 1.081 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.782e-05/3.675, allocations: 20.91 kB / 1.081 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04027/3.715, allocations: 14.31 MB / 1.095 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004895/3.72, allocations: 1.161 MB / 1.096 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002429/3.723, allocations: 72.53 kB / 1.096 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006707/3.73, allocations: 265.8 kB / 1.097 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001599/3.731, allocations: 264.4 kB / 1.097 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005778/3.732, allocations: 113.7 kB / 1.097 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0124/3.744, allocations: 4.085 MB / 1.101 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.11e-07/3.744, allocations: 3.719 kB / 1.101 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01415/3.758, allocations: 1.939 MB / 1.103 GB, free: 122.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * 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 (324): * Single equations (assignments): 317 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04267/3.801, allocations: 17.23 MB / 1.12 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02591/3.827, allocations: 9.846 MB / 1.129 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/3.827, allocations: 6.375 kB / 1.129 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008754/3.836, allocations: 3.323 MB / 1.132 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006798/3.843, allocations: 0.723 MB / 1.133 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5055/4.348, allocations: 177.5 MB / 1.307 GB, free: 120.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01627/4.365, allocations: 5.764 MB / 1.312 GB, free: 119.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01/4.375, allocations: 3.764 MB / 1.316 GB, free: 119.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.423e-06/4.375, allocations: 0 / 1.316 GB, free: 119.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.919/10.29, allocations: 181.5 MB / 1.493 GB, free: 146.1 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)