Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 199.1 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 226.5 MB / 244.1 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007645/0.0007645, allocations: 94.86 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.308/0.308, allocations: 44.82 MB / 393 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003073, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3099, allocations: 62.95 MB / 0.5165 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1455/0.4554, allocations: 117.7 MB / 0.6314 GB, free: 3.672 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4558, allocations: 83.95 kB / 0.6315 GB, free: 3.59 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5267/0.9825, allocations: 124.6 MB / 0.7531 GB, free: 88.65 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.9825, allocations: 4 kB / 0.7531 GB, free: 88.64 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003674/0.9829, allocations: 111.7 kB / 0.7532 GB, free: 88.64 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02066/1.004, allocations: 5.799 MB / 0.7589 GB, free: 84.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/1.004, allocations: 7.844 kB / 0.7589 GB, free: 84.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01699/1.021, allocations: 3.871 MB / 0.7627 GB, free: 81.17 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01298/1.034, allocations: 5.018 MB / 0.7676 GB, free: 76.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005387/1.034, allocations: 441.2 kB / 0.768 GB, free: 75.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002896/1.037, allocations: 0.5431 MB / 0.7685 GB, free: 75.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03171/1.069, allocations: 14.06 MB / 0.7823 GB, free: 59.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004556/1.069, allocations: 75.3 kB / 0.7823 GB, free: 59.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002618/1.072, allocations: 255.9 kB / 0.7826 GB, free: 59.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001797/1.074, allocations: 1.301 MB / 0.7838 GB, free: 58.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0237/1.098, allocations: 11.69 MB / 0.7953 GB, free: 46.58 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0682/1.166, allocations: 59.2 MB / 0.8531 GB, free: 1.508 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/1.178, allocations: 4.663 MB / 0.8576 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003825/1.182, allocations: 2.759 MB / 0.8603 GB, free: 9.918 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01834/1.201, allocations: 12.46 MB / 0.8725 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/1.201, allocations: 59.81 kB / 0.8726 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=191): time 5.17e-06/1.201, allocations: 0 / 0.8726 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=242): time 0.4052/1.606, allocations: 39.5 MB / 0.9111 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.253e-05/1.606, allocations: 237.5 kB / 0.9114 GB, free: 128.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/1.616, allocations: 4.765 MB / 0.916 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006682/1.617, allocations: 61.39 kB / 0.9161 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003231/1.62, allocations: 3.91 MB / 0.9199 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001528/1.622, allocations: 0.9169 MB / 0.9208 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000553/1.622, allocations: 141.2 kB / 0.9209 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004882/1.623, allocations: 0.6087 MB / 0.9215 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00553/1.628, allocations: 3.254 MB / 0.9247 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007263/1.636, allocations: 7.552 MB / 0.9321 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/1.648, allocations: 11.61 MB / 0.9434 GB, free: 109 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001631/1.648, allocations: 46.78 kB / 0.9434 GB, free: 109 MB / 0.5261 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.02828/1.676, allocations: 13.87 MB / 0.957 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.676, allocations: 70.19 kB / 0.957 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001937/1.676, allocations: 150.6 kB / 0.9572 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/1.687, allocations: 3.79 MB / 0.9609 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00543/1.692, allocations: 1.611 MB / 0.9625 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02237/1.715, allocations: 18.09 MB / 0.9801 GB, free: 90.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007306/1.722, allocations: 492.1 kB / 0.9806 GB, free: 90.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002209/1.724, allocations: 434.2 kB / 0.981 GB, free: 89.96 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 689 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (859): * Single equations (assignments): 855 * 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 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007554/1.732, allocations: 2.656 MB / 0.9836 GB, free: 87.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/1.733, allocations: 434.4 kB / 0.984 GB, free: 87.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01609/1.749, allocations: 8.145 MB / 0.992 GB, free: 80.97 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.134e-05/1.749, allocations: 24 kB / 0.992 GB, free: 80.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-05/1.749, allocations: 12 kB / 0.992 GB, free: 80.94 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.097e-05/1.75, allocations: 12.56 kB / 0.992 GB, free: 80.94 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03294/1.782, allocations: 17.45 MB / 1.009 GB, free: 67.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.661e-05/1.783, allocations: 3.062 kB / 1.009 GB, free: 67.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/1.785, allocations: 395.4 kB / 1.009 GB, free: 66.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01061/1.795, allocations: 3.847 MB / 1.013 GB, free: 62.94 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006067/1.796, allocations: 47.98 kB / 1.013 GB, free: 62.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02014/1.816, allocations: 16.53 MB / 1.029 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/1.816, allocations: 0 / 1.029 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02111/1.837, allocations: 12.53 MB / 1.042 GB, free: 33.67 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/1.839, allocations: 471.3 kB / 1.042 GB, free: 33.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/1.84, allocations: 32 kB / 1.042 GB, free: 33.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002826/1.843, allocations: 212.3 kB / 1.042 GB, free: 32.95 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006235/1.844, allocations: 154.2 kB / 1.042 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002095/1.844, allocations: 63.11 kB / 1.043 GB, free: 32.74 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004981/1.849, allocations: 2.975 MB / 1.045 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.392e-06/1.849, allocations: 0 / 1.045 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008142/1.857, allocations: 1.466 MB / 1.047 GB, free: 28.32 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.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 (167): * Single equations (assignments): 163 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000906/1.858, allocations: 215.2 kB / 1.047 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01196/1.87, allocations: 7.88 MB / 1.055 GB, free: 20.26 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.87, allocations: 0 / 1.055 GB, free: 20.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004298/1.874, allocations: 2.962 MB / 1.058 GB, free: 17.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004682/1.879, allocations: 0.5237 MB / 1.058 GB, free: 16.77 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0221/1.901, allocations: 15.52 MB / 1.073 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005723/1.907, allocations: 4.107 MB / 1.077 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/1.908, allocations: 335.4 kB / 1.078 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of SimCode: time 2.024e-06/1.908, allocations: 0 / 1.078 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of Templates: time 0.4164/2.325, allocations: 99.72 MB / 1.175 GB, free: 97.26 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)