Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 183.4 kB / 18.09 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 223.3 MB / 242.1 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007736/0.0007735, allocations: 98.55 kB / 293.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3356/0.3356, allocations: 44.15 MB / 388.5 MB, free: 38.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003836, allocations: 12 kB / 461.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.31, allocations: 61.88 MB / 0.5107 GB, free: 38.33 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.156/0.466, allocations: 114.7 MB / 0.6227 GB, free: 12.34 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.4663, allocations: 79.95 kB / 0.6228 GB, free: 12.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5942/1.06, allocations: 135.3 MB / 0.7549 GB, free: 87.67 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.061, allocations: 0 / 0.7549 GB, free: 87.67 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000602/1.061, allocations: 138 kB / 0.755 GB, free: 87.66 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02563/1.087, allocations: 7.324 MB / 0.7622 GB, free: 82.87 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/1.087, allocations: 11.44 kB / 0.7622 GB, free: 82.87 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02447/1.111, allocations: 5.847 MB / 0.7679 GB, free: 79.73 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02009/1.132, allocations: 7.884 MB / 0.7756 GB, free: 71.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005752/1.132, allocations: 489.2 kB / 0.7761 GB, free: 71.28 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003566/1.136, allocations: 0.6523 MB / 0.7767 GB, free: 70.63 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03807/1.174, allocations: 16.55 MB / 0.7929 GB, free: 52.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005949/1.174, allocations: 103.3 kB / 0.793 GB, free: 52.53 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00357/1.178, allocations: 323.8 kB / 0.7933 GB, free: 52.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002276/1.18, allocations: 1.576 MB / 0.7948 GB, free: 50.63 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02763/1.208, allocations: 13.52 MB / 0.808 GB, free: 37.09 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4147/1.623, allocations: 74.12 MB / 0.8804 GB, free: 64.24 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02059/1.643, allocations: 7.686 MB / 0.8879 GB, free: 63.55 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005171/1.649, allocations: 3.957 MB / 0.8918 GB, free: 63.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02451/1.673, allocations: 18.42 MB / 0.9097 GB, free: 59.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/1.673, allocations: 65.3 kB / 0.9098 GB, free: 59.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 4.608e-06/1.673, allocations: 1.641 kB / 0.9098 GB, free: 59.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.1439/1.817, allocations: 47.96 MB / 0.9566 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.405e-05/1.817, allocations: 276.2 kB / 0.9569 GB, free: 48.91 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009933/1.827, allocations: 6.027 MB / 0.9628 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009695/1.828, allocations: 83.69 kB / 0.9629 GB, free: 46.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002666/1.831, allocations: 4.763 MB / 0.9675 GB, free: 42.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001634/1.832, allocations: 1.334 MB / 0.9688 GB, free: 41.73 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004483/1.833, allocations: 188 kB / 0.969 GB, free: 41.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003998/1.833, allocations: 0.6919 MB / 0.9697 GB, free: 40.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004949/1.838, allocations: 3.75 MB / 0.9733 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007653/1.846, allocations: 8.984 MB / 0.9821 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01531/1.861, allocations: 13.78 MB / 0.9956 GB, free: 12.52 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002568/1.862, allocations: 52 kB / 0.9956 GB, free: 12.47 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03626/1.898, allocations: 16.1 MB / 1.011 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003185/1.898, allocations: 88.84 kB / 1.011 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004337/1.899, allocations: 183.8 kB / 1.012 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01373/1.912, allocations: 4.071 MB / 1.016 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007752/1.92, allocations: 2.031 MB / 1.018 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03451/1.955, allocations: 21.01 MB / 1.038 GB, free: 4.789 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009005/1.964, allocations: 0.5461 MB / 1.039 GB, free: 4.242 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00226/1.966, allocations: 0.5195 MB / 1.039 GB, free: 3.723 MB / 0.5417 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 (1081): * Single equations (assignments): 1076 * 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%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009053/1.975, allocations: 3.113 MB / 1.042 GB, free: 0.6016 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002038/1.977, allocations: 0.5708 MB / 1.043 GB, free: 24 kB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02459/2.002, allocations: 9.545 MB / 1.052 GB, free: 6.414 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.658e-05/2.002, allocations: 43.38 kB / 1.052 GB, free: 6.375 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.153e-05/2.002, allocations: 20 kB / 1.052 GB, free: 6.355 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-05/2.002, allocations: 19.94 kB / 1.052 GB, free: 6.336 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0488/2.051, allocations: 18.98 MB / 1.071 GB, free: 3.25 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.46e-05/2.051, allocations: 0 / 1.071 GB, free: 3.25 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002923/2.054, allocations: 0.4953 MB / 1.071 GB, free: 2.754 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01269/2.067, allocations: 3.675 MB / 1.075 GB, free: 15.07 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009407/2.068, allocations: 67.36 kB / 1.075 GB, free: 15.01 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0302/2.098, allocations: 18.88 MB / 1.093 GB, free: 11.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/2.098, allocations: 3.516 kB / 1.093 GB, free: 11.85 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3311/2.429, allocations: 13.95 MB / 1.107 GB, free: 188.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/2.431, allocations: 0.5823 MB / 1.107 GB, free: 188.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001212/2.432, allocations: 56.97 kB / 1.107 GB, free: 188.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002657/2.435, allocations: 227.9 kB / 1.108 GB, free: 188.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007126/2.435, allocations: 225.5 kB / 1.108 GB, free: 188.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/2.436, allocations: 87.33 kB / 1.108 GB, free: 188.8 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.006401/2.442, allocations: 3.771 MB / 1.112 GB, free: 188.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.81e-07/2.442, allocations: 0 / 1.112 GB, free: 188.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008971/2.451, allocations: 1.841 MB / 1.113 GB, free: 188.6 MB / 0.6042 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 (263): * Single equations (assignments): 258 * 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.0006981/2.452, allocations: 232.9 kB / 1.114 GB, free: 188.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01411/2.466, allocations: 9.569 MB / 1.123 GB, free: 188.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/2.466, allocations: 0 / 1.123 GB, free: 188.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.006026/2.472, allocations: 3.742 MB / 1.127 GB, free: 187.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005217/2.477, allocations: 0.7591 MB / 1.127 GB, free: 187.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03104/2.508, allocations: 18.35 MB / 1.145 GB, free: 181.2 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007713/2.516, allocations: 4.847 MB / 1.15 GB, free: 180.3 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.008538/2.525, allocations: 2.791 MB / 1.153 GB, free: 180.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/2.526, allocations: 380 kB / 1.153 GB, free: 180.3 MB / 0.6042 GB Notification: Performance of SimCode: time 8.92e-07/2.526, allocations: 0 / 1.153 GB, free: 180.3 MB / 0.6042 GB Notification: Performance of Templates: time 0.1307/2.657, allocations: 74.94 MB / 1.226 GB, free: 144.2 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches