Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,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.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,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.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001747/0.001747, allocations: 176.3 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.661/2.661, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.0008906/0.0008907, allocations: 89.03 kB / 271.9 MB, free: 8.242 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.5767/0.5767, allocations: 43.56 MB / 363.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005475/0.0005475, allocations: 12 kB / 432.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1887, allocations: 58.85 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6027/0.7915, allocations: 113 MB / 0.5903 GB, free: 5.379 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003646/0.7919, allocations: 79.97 kB / 0.5903 GB, free: 5.301 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8896/1.682, allocations: 133.7 MB / 0.721 GB, free: 86.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.798e-06/1.682, allocations: 1.156 kB / 0.721 GB, free: 86.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007696/1.682, allocations: 131.6 kB / 0.7211 GB, free: 86.84 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.04162/1.724, allocations: 7.39 MB / 0.7283 GB, free: 83.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/1.724, allocations: 11 kB / 0.7283 GB, free: 83.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04539/1.77, allocations: 5.854 MB / 0.734 GB, free: 83.42 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03008/1.8, allocations: 8.489 MB / 0.7423 GB, free: 82.03 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009168/1.801, allocations: 491.2 kB / 0.7428 GB, free: 81.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005072/1.806, allocations: 0.6492 MB / 0.7434 GB, free: 81.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06235/1.868, allocations: 16.56 MB / 0.7596 GB, free: 73.35 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009031/1.869, allocations: 106.2 kB / 0.7597 GB, free: 73.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004395/1.874, allocations: 317 kB / 0.76 GB, free: 73.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004188/1.878, allocations: 1.582 MB / 0.7615 GB, free: 72.83 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0487/1.927, allocations: 13.54 MB / 0.7748 GB, free: 68.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1374/2.064, allocations: 74.29 MB / 0.8473 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03767/2.102, allocations: 7.724 MB / 0.8548 GB, free: 4.289 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01039/2.112, allocations: 4.033 MB / 0.8588 GB, free: 244 kB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4929/2.605, allocations: 18.53 MB / 0.8769 GB, free: 90.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001002/2.605, allocations: 69.42 kB / 0.8769 GB, free: 90.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=287): time 1.777e-05/2.605, allocations: 0 / 0.8769 GB, free: 90.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=370): time 0.3229/2.928, allocations: 49.27 MB / 0.9251 GB, free: 81.84 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/2.928, allocations: 277.8 kB / 0.9253 GB, free: 81.56 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02485/2.953, allocations: 6.092 MB / 0.9313 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00163/2.955, allocations: 79.41 kB / 0.9313 GB, free: 79.45 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007131/2.962, allocations: 4.78 MB / 0.936 GB, free: 75.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003653/2.966, allocations: 1.356 MB / 0.9373 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002439/2.968, allocations: 185.6 kB / 0.9375 GB, free: 74.65 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001957/2.97, allocations: 0.6922 MB / 0.9382 GB, free: 74.18 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01312/2.984, allocations: 3.788 MB / 0.9419 GB, free: 72.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01885/3.003, allocations: 9.014 MB / 0.9507 GB, free: 64.57 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03006/3.033, allocations: 13.84 MB / 0.9642 GB, free: 53.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007251/3.034, allocations: 51.59 kB / 0.9643 GB, free: 53.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.06542/3.099, allocations: 16.13 MB / 0.98 GB, free: 44.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004247/3.099, allocations: 84.06 kB / 0.9801 GB, free: 44.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005623/3.1, allocations: 184 kB / 0.9803 GB, free: 44.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02332/3.123, allocations: 4.037 MB / 0.9842 GB, free: 41.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01295/3.136, allocations: 2.048 MB / 0.9862 GB, free: 40.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05621/3.193, allocations: 20.97 MB / 1.007 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0168/3.21, allocations: 0.5511 MB / 1.007 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003711/3.213, allocations: 0.5246 MB / 1.008 GB, free: 21.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[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],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1088): * Single equations (assignments): 1083 * 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 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01386/3.227, allocations: 3.125 MB / 1.011 GB, free: 18.46 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002777/3.23, allocations: 0.5824 MB / 1.011 GB, free: 17.87 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0423/3.272, allocations: 9.577 MB / 1.021 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/3.273, allocations: 40 kB / 1.021 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001063/3.273, allocations: 16 kB / 1.021 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001426/3.273, allocations: 19.88 kB / 1.021 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08683/3.36, allocations: 19.07 MB / 1.039 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.368e-05/3.36, allocations: 0 / 1.039 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005304/3.365, allocations: 0.507 MB / 1.04 GB, free: 6.484 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02425/3.389, allocations: 3.621 MB / 1.043 GB, free: 2.855 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00142/3.391, allocations: 62.73 kB / 1.044 GB, free: 2.797 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4882/3.879, allocations: 18.89 MB / 1.062 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/3.879, allocations: 2.188 kB / 1.062 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04781/3.927, allocations: 14.01 MB / 1.076 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005826/3.933, allocations: 1.127 MB / 1.077 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003112/3.936, allocations: 57.44 kB / 1.077 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007222/3.943, allocations: 223.2 kB / 1.077 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002056/3.946, allocations: 228.1 kB / 1.077 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001031/3.947, allocations: 89.73 kB / 1.077 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01318/3.96, allocations: 3.809 MB / 1.081 GB, free: 110 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.345e-06/3.96, allocations: 0 / 1.081 GB, free: 110 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01896/3.979, allocations: 1.849 MB / 1.083 GB, free: 110 MB / 0.5261 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * 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 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002126/3.981, allocations: 227.4 kB / 1.083 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03087/4.012, allocations: 9.67 MB / 1.092 GB, free: 107 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/4.012, allocations: 0.5625 kB / 1.092 GB, free: 107 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01449/4.026, allocations: 3.793 MB / 1.096 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01536/4.042, allocations: 0.7613 MB / 1.097 GB, free: 105 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06115/4.103, allocations: 19.27 MB / 1.116 GB, free: 95.74 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01763/4.121, allocations: 4.875 MB / 1.121 GB, free: 94.17 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003797/4.125, allocations: 452.1 kB / 1.121 GB, free: 94.15 MB / 0.5261 GB Notification: Performance of SimCode: time 1.202e-06/4.125, allocations: 0 / 1.121 GB, free: 94.15 MB / 0.5261 GB Notification: Performance of Templates: time 0.7566/4.881, allocations: 152.1 MB / 1.269 GB, free: 109.5 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches