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.001499/0.001499, allocations: 179.4 kB / 8.364 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.118/2.118, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001146/0.001145, allocations: 89.34 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.36/0.36, allocations: 43.48 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.873e-05, allocations: 0 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4036, allocations: 58.86 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2124/0.6161, allocations: 116.8 MB / 0.5801 GB, free: 14.36 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.6165, allocations: 87.39 kB / 0.5801 GB, free: 14.28 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.008/1.624, allocations: 169 MB / 0.7452 GB, free: 63.43 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.104e-06/1.624, allocations: 0 / 0.7452 GB, free: 63.43 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004544/1.625, allocations: 148 kB / 0.7454 GB, free: 63.28 MB / 475.1 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.03211/1.657, allocations: 7.706 MB / 0.7529 GB, free: 55.51 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/1.657, allocations: 8.031 kB / 0.7529 GB, free: 55.5 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05247/1.709, allocations: 6.951 MB / 0.7597 GB, free: 48.53 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03406/1.743, allocations: 9.836 MB / 0.7693 GB, free: 38.7 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005242/1.744, allocations: 248 kB / 0.7695 GB, free: 38.45 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004494/1.748, allocations: 455.8 kB / 0.77 GB, free: 38.01 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03153/1.78, allocations: 13.16 MB / 0.7828 GB, free: 24.85 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04749/1.828, allocations: 17.63 MB / 0.8 GB, free: 5.801 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004954/1.828, allocations: 91.12 kB / 0.8001 GB, free: 5.711 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004253/1.832, allocations: 47.98 kB / 0.8002 GB, free: 5.664 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004584/1.837, allocations: 1.964 MB / 0.8021 GB, free: 3.699 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5234/2.36, allocations: 79 MB / 0.8792 GB, free: 40.8 MB / 491.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/2.373, allocations: 5.981 MB / 0.8851 GB, free: 39.57 MB / 491.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008118/2.381, allocations: 3.875 MB / 0.8888 GB, free: 39.52 MB / 491.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0503/2.431, allocations: 17.99 MB / 0.9064 GB, free: 32.44 MB / 491.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.488e-05/2.431, allocations: 62.92 kB / 0.9065 GB, free: 32.38 MB / 491.1 MB Notification: Performance of pre-optimization done (n=334): time 8.677e-06/2.431, allocations: 0 / 0.9065 GB, free: 32.38 MB / 491.1 MB Notification: Performance of matching and sorting (n=426): time 0.1106/2.542, allocations: 26.45 MB / 0.9323 GB, free: 23.11 MB / 491.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.991e-05/2.542, allocations: 197.7 kB / 0.9325 GB, free: 22.92 MB / 491.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/2.554, allocations: 5.08 MB / 0.9374 GB, free: 21.09 MB / 491.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001032/2.555, allocations: 25.7 kB / 0.9375 GB, free: 21.06 MB / 491.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004718/2.56, allocations: 5.411 MB / 0.9428 GB, free: 16.83 MB / 491.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002672/2.563, allocations: 1.512 MB / 0.9442 GB, free: 15.7 MB / 491.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001858/2.565, allocations: 0 / 0.9442 GB, free: 15.7 MB / 491.1 MB Notification: Performance of setup shared object (initialization): time 0.001308/2.566, allocations: 0.7753 MB / 0.945 GB, free: 15.19 MB / 491.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01077/2.577, allocations: 3.976 MB / 0.9489 GB, free: 13.73 MB / 491.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01546/2.592, allocations: 10.03 MB / 0.9587 GB, free: 4.145 MB / 491.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01849/2.611, allocations: 6.515 MB / 0.965 GB, free: 0 / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007727/2.612, allocations: 92.91 kB / 0.9651 GB, free: 0 / 491.1 MB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.05607/2.668, allocations: 14.71 MB / 0.9795 GB, free: 3.953 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002053/2.668, allocations: 100 kB / 0.9796 GB, free: 3.855 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004412/2.668, allocations: 216 kB / 0.9798 GB, free: 3.645 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0144/2.683, allocations: 2.302 MB / 0.982 GB, free: 1.98 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01769/2.701, allocations: 2.557 MB / 0.9845 GB, free: 15.79 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03081/2.731, allocations: 11.13 MB / 0.9954 GB, free: 6.098 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01347/2.745, allocations: 0.4888 MB / 0.9959 GB, free: 5.73 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003012/2.748, allocations: 0.6209 MB / 0.9965 GB, free: 5.117 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 982 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1333): * Single equations (assignments): 1326 * 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.003514/2.752, allocations: 0.637 MB / 0.9971 GB, free: 4.477 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03406/2.786, allocations: 8.112 MB / 1.005 GB, free: 14.52 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002389/2.788, allocations: 0.5703 MB / 1.006 GB, free: 13.95 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03253/2.821, allocations: 7.938 MB / 1.013 GB, free: 7.551 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001797/2.821, allocations: 63.42 kB / 1.013 GB, free: 7.492 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-05/2.821, allocations: 12 kB / 1.013 GB, free: 7.48 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001029/2.821, allocations: 23.5 kB / 1.013 GB, free: 7.477 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.453/3.274, allocations: 17.15 MB / 1.03 GB, free: 121.4 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.578e-05/3.274, allocations: 12.94 kB / 1.03 GB, free: 121.4 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006343/3.28, allocations: 0.6499 MB / 1.031 GB, free: 121.4 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01299/3.294, allocations: 1.803 MB / 1.033 GB, free: 121.4 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009605/3.295, allocations: 21.56 kB / 1.033 GB, free: 121.4 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02709/3.322, allocations: 9.402 MB / 1.042 GB, free: 120.1 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-05/3.322, allocations: 23.12 kB / 1.042 GB, free: 120.1 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03639/3.358, allocations: 13.99 MB / 1.055 GB, free: 116.7 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00475/3.363, allocations: 1.133 MB / 1.057 GB, free: 116.6 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001943/3.365, allocations: 19.66 kB / 1.057 GB, free: 116.6 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006297/3.371, allocations: 197.4 kB / 1.057 GB, free: 116.6 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001416/3.373, allocations: 267.6 kB / 1.057 GB, free: 116.6 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004713/3.373, allocations: 111.7 kB / 1.057 GB, free: 116.6 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.009357/3.383, allocations: 3.384 MB / 1.06 GB, free: 116.4 MB / 0.5265 GB Notification: Performance of sort global known variables: time 2.836e-06/3.383, allocations: 0 / 1.06 GB, free: 116.4 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.01365/3.396, allocations: 1.686 MB / 1.062 GB, free: 116.4 MB / 0.5265 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (337): * Single equations (assignments): 330 * 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.03629/3.433, allocations: 16.98 MB / 1.079 GB, free: 108.7 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.02206/3.455, allocations: 9.391 MB / 1.088 GB, free: 105.8 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 4.184e-05/3.455, allocations: 4.969 kB / 1.088 GB, free: 105.8 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.008428/3.463, allocations: 3.251 MB / 1.091 GB, free: 104.5 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006025/3.469, allocations: 0.5773 MB / 1.092 GB, free: 104.2 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06304/3.532, allocations: 17.89 MB / 1.109 GB, free: 97.69 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0151/3.548, allocations: 5.785 MB / 1.115 GB, free: 95.87 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01013/3.558, allocations: 3.756 MB / 1.118 GB, free: 92.76 MB / 0.5265 GB Notification: Performance of SimCode: time 1.814e-06/3.558, allocations: 0 / 1.118 GB, free: 92.76 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.163/9.721, allocations: 181.1 MB / 1.295 GB, free: 104.5 MB / 0.5265 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)