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.001514/0.001514, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.998/1.998, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001709/0.001709, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2805/0.2805, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.68e-05/3.699e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1585, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5377/0.6963, allocations: 117.5 MB / 0.5876 GB, free: 2.496 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.6967, allocations: 84.73 kB / 0.5877 GB, free: 2.457 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.05/1.746, allocations: 172.3 MB / 0.7559 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.054e-06/1.746, allocations: 0 / 0.7559 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005096/1.747, allocations: 155.1 kB / 0.7561 GB, free: 105.3 MB / 0.4948 GB 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.034/1.781, allocations: 7.708 MB / 0.7636 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/1.781, allocations: 7.906 kB / 0.7636 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008103/1.789, allocations: 1.622 MB / 0.7652 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0528/1.842, allocations: 6.949 MB / 0.772 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03582/1.878, allocations: 9.849 MB / 0.7816 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008086/1.879, allocations: 0.57 MB / 0.7822 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004878/1.883, allocations: 0.7635 MB / 0.7829 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0647/1.948, allocations: 20.56 MB / 0.803 GB, free: 89.53 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005466/1.949, allocations: 94.61 kB / 0.8031 GB, free: 89.44 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004338/1.953, allocations: 362.5 kB / 0.8034 GB, free: 89.13 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004595/1.958, allocations: 1.96 MB / 0.8053 GB, free: 87.52 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05562/2.014, allocations: 17.92 MB / 0.8228 GB, free: 70.85 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1481/2.162, allocations: 82.29 MB / 0.9032 GB, free: 2.648 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3943/2.556, allocations: 7.293 MB / 0.9103 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009874/2.566, allocations: 3.926 MB / 0.9142 GB, free: 110 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05267/2.619, allocations: 18.23 MB / 0.932 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.779e-05/2.619, allocations: 63.81 kB / 0.932 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=332): time 8.256e-06/2.619, allocations: 0 / 0.932 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=413): time 0.139/2.758, allocations: 26.1 MB / 0.9575 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.434e-05/2.758, allocations: 192.3 kB / 0.9577 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01435/2.772, allocations: 5.706 MB / 0.9633 GB, free: 99.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009863/2.773, allocations: 80.11 kB / 0.9633 GB, free: 99.25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004693/2.778, allocations: 5.264 MB / 0.9685 GB, free: 95.21 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002399/2.78, allocations: 1.525 MB / 0.97 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001446/2.782, allocations: 206.9 kB / 0.9702 GB, free: 93.93 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008092/2.783, allocations: 0.7538 MB / 0.9709 GB, free: 93.43 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01037/2.793, allocations: 4.033 MB / 0.9748 GB, free: 92.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01462/2.808, allocations: 9.856 MB / 0.9845 GB, free: 82.86 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01444/2.822, allocations: 6.247 MB / 0.9906 GB, free: 80.98 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000226/2.823, allocations: 58.16 kB / 0.9906 GB, free: 80.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.04933/2.872, allocations: 15.44 MB / 1.006 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000175/2.872, allocations: 94.38 kB / 1.006 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003661/2.873, allocations: 206.9 kB / 1.006 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01365/2.886, allocations: 2.332 MB / 1.008 GB, free: 74.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01578/2.902, allocations: 2.445 MB / 1.011 GB, free: 72.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02896/2.931, allocations: 11.53 MB / 1.022 GB, free: 62.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01314/2.944, allocations: 0.6926 MB / 1.023 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002546/2.947, allocations: 0.5853 MB / 1.023 GB, free: 61.23 MB / 0.5105 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 () * 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.004027/2.951, allocations: 0.8694 MB / 1.024 GB, free: 60.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001706/2.953, allocations: 0.609 MB / 1.025 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0297/2.982, allocations: 8.075 MB / 1.032 GB, free: 53.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/2.983, allocations: 65.86 kB / 1.033 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-05/2.983, allocations: 12 kB / 1.033 GB, free: 53.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.958e-05/2.983, allocations: 17.34 kB / 1.033 GB, free: 53.12 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06336/3.046, allocations: 18.77 MB / 1.051 GB, free: 37.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.79e-05/3.046, allocations: 12 kB / 1.051 GB, free: 37.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005906/3.052, allocations: 0.641 MB / 1.052 GB, free: 36.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01231/3.064, allocations: 1.879 MB / 1.053 GB, free: 35.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000914/3.065, allocations: 75.33 kB / 1.053 GB, free: 35.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02546/3.091, allocations: 9.874 MB / 1.063 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.431e-05/3.091, allocations: 15.94 kB / 1.063 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03586/3.127, allocations: 14.17 MB / 1.077 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004717/3.132, allocations: 1.163 MB / 1.078 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002055/3.134, allocations: 75.61 kB / 1.078 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006561/3.14, allocations: 262.4 kB / 1.078 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001463/3.142, allocations: 255.4 kB / 1.079 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004751/3.142, allocations: 119 kB / 1.079 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01079/3.153, allocations: 3.951 MB / 1.083 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.41e-07/3.153, allocations: 0 / 1.083 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01326/3.166, allocations: 1.935 MB / 1.085 GB, free: 6.855 MB / 0.5105 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 (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.4278/3.594, allocations: 17.12 MB / 1.101 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02686/3.621, allocations: 9.633 MB / 1.111 GB, free: 113 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-05/3.621, allocations: 5.75 kB / 1.111 GB, free: 113 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009253/3.631, allocations: 3.286 MB / 1.114 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006641/3.637, allocations: 0.7256 MB / 1.115 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06152/3.699, allocations: 18.11 MB / 1.132 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01421/3.713, allocations: 5.768 MB / 1.138 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009422/3.723, allocations: 3.763 MB / 1.142 GB, free: 107 MB / 0.5261 GB Notification: Performance of SimCode: time 1.583e-06/3.723, allocations: 0 / 1.142 GB, free: 107 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.95/9.673, allocations: 183.6 MB / 1.321 GB, free: 120 MB / 0.5417 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)