Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.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: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002765/0.00277, allocations: 178 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.006/2.006, 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.001085/0.001084, allocations: 86.17 kB / 262.1 MB, free: 13.87 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.2944/0.2944, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.104e-05/2.134e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.4088, allocations: 58.85 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2038/0.6126, allocations: 111 MB / 0.5743 GB, free: 4.277 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.613, allocations: 79.95 kB / 0.5743 GB, free: 4.199 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7981/1.411, allocations: 109 MB / 0.6808 GB, free: 108.6 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.224e-06/1.411, allocations: 0 / 0.6808 GB, free: 108.6 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004034/1.412, allocations: 113.2 kB / 0.6809 GB, free: 108.6 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: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.0249/1.437, allocations: 5.882 MB / 0.6867 GB, free: 105.9 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.437, allocations: 11.69 kB / 0.6867 GB, free: 105.9 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04929/1.486, allocations: 6.902 MB / 0.6934 GB, free: 104.8 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02712/1.513, allocations: 7.073 MB / 0.7003 GB, free: 102.3 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003705/1.513, allocations: 173.1 kB / 0.7005 GB, free: 102.3 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00319/1.517, allocations: 332.8 kB / 0.7008 GB, free: 102.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02005/1.537, allocations: 8.107 MB / 0.7087 GB, free: 98.71 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02995/1.567, allocations: 12.06 MB / 0.7205 GB, free: 85.86 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003452/1.567, allocations: 71.34 kB / 0.7206 GB, free: 85.79 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002345/1.57, allocations: 36 kB / 0.7206 GB, free: 85.75 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002768/1.572, allocations: 1.36 MB / 0.7219 GB, free: 84.39 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09047/1.663, allocations: 60.69 MB / 0.7812 GB, free: 21.97 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007797/1.671, allocations: 4.366 MB / 0.7854 GB, free: 17.46 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005559/1.676, allocations: 3.048 MB / 0.7884 GB, free: 14.41 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02864/1.705, allocations: 12.37 MB / 0.8005 GB, free: 1.781 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/1.705, allocations: 64.48 kB / 0.8006 GB, free: 1.711 MB / 475.1 MB Notification: Performance of pre-optimization done (n=227): time 6.402e-06/1.705, allocations: 4 kB / 0.8006 GB, free: 1.707 MB / 475.1 MB Notification: Performance of matching and sorting (n=265): time 0.1008/1.806, allocations: 24.82 MB / 0.8248 GB, free: 8.832 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001751/1.806, allocations: 265.3 kB / 0.8251 GB, free: 8.52 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00984/1.816, allocations: 3.869 MB / 0.8288 GB, free: 4.652 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.000676/1.817, allocations: 29.7 kB / 0.8289 GB, free: 4.617 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004585/1.821, allocations: 3.923 MB / 0.8327 GB, free: 0.6406 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.351/2.172, allocations: 0.9627 MB / 0.8336 GB, free: 130 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009689/2.173, allocations: 2.125 kB / 0.8336 GB, free: 130 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.000664/2.174, allocations: 0.6328 MB / 0.8343 GB, free: 129.7 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006956/2.181, allocations: 2.427 MB / 0.8366 GB, free: 129.6 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/2.192, allocations: 6.902 MB / 0.8434 GB, free: 123.9 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/2.203, allocations: 4.043 MB / 0.8473 GB, free: 123.8 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003342/2.203, allocations: 48.69 kB / 0.8474 GB, free: 123.8 MB / 0.4952 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.02812/2.231, allocations: 8.64 MB / 0.8558 GB, free: 123.2 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002186/2.232, allocations: 73.19 kB / 0.8559 GB, free: 123.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003389/2.232, allocations: 159.2 kB / 0.856 GB, free: 123.2 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/2.234, allocations: 0.5876 MB / 0.8566 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01156/2.246, allocations: 1.798 MB / 0.8584 GB, free: 123 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008459/2.254, allocations: 5.421 MB / 0.8636 GB, free: 119.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008576/2.263, allocations: 265.9 kB / 0.8639 GB, free: 119.6 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002125/2.265, allocations: 454.9 kB / 0.8643 GB, free: 119.6 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (947): * Single equations (assignments): 942 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003117/2.268, allocations: 0.5125 MB / 0.8648 GB, free: 119.2 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/2.27, allocations: 435.7 kB / 0.8652 GB, free: 119.2 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/2.28, allocations: 3.77 MB / 0.8689 GB, free: 117.8 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.559e-05/2.28, allocations: 30.28 kB / 0.869 GB, free: 117.8 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/2.28, allocations: 7.625 kB / 0.869 GB, free: 117.8 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.617e-05/2.28, allocations: 11.06 kB / 0.869 GB, free: 117.8 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02806/2.308, allocations: 9.007 MB / 0.8778 GB, free: 114.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.205e-05/2.308, allocations: 4.953 kB / 0.8778 GB, free: 114.6 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004841/2.313, allocations: 473.8 kB / 0.8782 GB, free: 114.5 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/2.315, allocations: 345.4 kB / 0.8786 GB, free: 114.4 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006298/2.316, allocations: 2.812 kB / 0.8786 GB, free: 114.4 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007134/2.323, allocations: 4.751 MB / 0.8832 GB, free: 111 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/2.323, allocations: 4.062 kB / 0.8832 GB, free: 111 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/2.338, allocations: 6.867 MB / 0.8899 GB, free: 108.1 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003158/2.342, allocations: 0.7874 MB / 0.8907 GB, free: 107.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/2.343, allocations: 7.75 kB / 0.8907 GB, free: 107.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003989/2.347, allocations: 124.7 kB / 0.8908 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007257/2.348, allocations: 142.8 kB / 0.8909 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002829/2.348, allocations: 66.16 kB / 0.891 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.006788/2.355, allocations: 2.601 MB / 0.8935 GB, free: 106.7 MB / 0.4952 GB Notification: Performance of sort global known variables: time 2.445e-06/2.355, allocations: 0 / 0.8935 GB, free: 106.7 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.009298/2.364, allocations: 1.119 MB / 0.8946 GB, free: 106.7 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009299/2.365, allocations: 151.6 kB / 0.8948 GB, free: 106.6 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01393/2.379, allocations: 6.068 MB / 0.9007 GB, free: 104.3 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/2.379, allocations: 0 / 0.9007 GB, free: 104.3 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.00472/2.384, allocations: 2.124 MB / 0.9028 GB, free: 103.3 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004427/2.388, allocations: 466.4 kB / 0.9032 GB, free: 103.1 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03025/2.418, allocations: 10.6 MB / 0.9136 GB, free: 95.8 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009442/2.428, allocations: 4.234 MB / 0.9177 GB, free: 92.66 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002374/2.43, allocations: 359.8 kB / 0.9181 GB, free: 92.32 MB / 0.4952 GB Notification: Performance of SimCode: time 1.002e-06/2.43, allocations: 4 kB / 0.9181 GB, free: 92.32 MB / 0.4952 GB Notification: Performance of Templates: time 0.5658/2.996, allocations: 116.2 MB / 1.032 GB, free: 132.9 MB / 0.5108 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/LineForceWithMass/LineForceWithMass.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches