Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.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.LineForceWithMass,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.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_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008494/0.0008495, allocations: 88.92 kB / 281.6 MB, free: 5.309 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.1908/0.1908, allocations: 44.14 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.169e-05/2.171e-05, allocations: 4 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1253, allocations: 61.92 MB / 0.4947 GB, free: 1.254 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4043/0.5297, allocations: 112.9 MB / 0.6049 GB, free: 15.63 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.5301, allocations: 79.95 kB / 0.605 GB, free: 15.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5653/1.095, allocations: 110.5 MB / 0.7128 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.383e-06/1.095, allocations: 0 / 0.7128 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002766/1.096, allocations: 120.1 kB / 0.713 GB, free: 109.2 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: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.01688/1.113, allocations: 5.862 MB / 0.7187 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/1.113, allocations: 12.45 kB / 0.7187 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02785/1.141, allocations: 6.905 MB / 0.7254 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/1.159, allocations: 6.757 MB / 0.732 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000365/1.159, allocations: 183.2 kB / 0.7322 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002899/1.162, allocations: 322.3 kB / 0.7325 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01388/1.176, allocations: 8.109 MB / 0.7404 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02505/1.201, allocations: 12.04 MB / 0.7522 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000257/1.202, allocations: 82.42 kB / 0.7523 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00107/1.203, allocations: 34.06 kB / 0.7523 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001618/1.204, allocations: 1.361 MB / 0.7536 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05941/1.264, allocations: 60.64 MB / 0.8129 GB, free: 55.48 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005152/1.269, allocations: 4.367 MB / 0.8171 GB, free: 51.32 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003018/1.272, allocations: 3.051 MB / 0.8201 GB, free: 48.51 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01602/1.288, allocations: 12.33 MB / 0.8321 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.143e-05/1.288, allocations: 71.92 kB / 0.8322 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=227): time 7.444e-06/1.288, allocations: 0 / 0.8322 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=265): time 0.04807/1.336, allocations: 24.71 MB / 0.8563 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/1.336, allocations: 257.3 kB / 0.8566 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005602/1.342, allocations: 3.848 MB / 0.8603 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006826/1.343, allocations: 25.7 kB / 0.8604 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001984/1.345, allocations: 4.035 MB / 0.8643 GB, free: 7.801 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001031/1.346, allocations: 0.9637 MB / 0.8653 GB, free: 6.824 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003982/1.346, allocations: 0 / 0.8653 GB, free: 6.824 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003108/1.346, allocations: 0.6318 MB / 0.8659 GB, free: 6.191 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002941/1.349, allocations: 2.424 MB / 0.8682 GB, free: 3.766 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005685/1.355, allocations: 6.902 MB / 0.875 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006318/1.361, allocations: 4.034 MB / 0.8789 GB, free: 6.594 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001106/1.362, allocations: 44 kB / 0.879 GB, free: 6.551 MB / 0.5105 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.01941/1.381, allocations: 8.789 MB / 0.8875 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002058/1.381, allocations: 76 kB / 0.8876 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003088/1.382, allocations: 159.8 kB / 0.8878 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/1.383, allocations: 0.5886 MB / 0.8883 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007356/1.391, allocations: 1.801 MB / 0.8901 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006891/1.397, allocations: 5.408 MB / 0.8954 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006362/1.404, allocations: 259.4 kB / 0.8956 GB, free: 5.238 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001771/1.406, allocations: 456 kB / 0.8961 GB, free: 4.793 MB / 0.5261 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.002486/1.408, allocations: 0.5224 MB / 0.8966 GB, free: 4.266 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001245/1.409, allocations: 438.3 kB / 0.897 GB, free: 3.832 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007905/1.417, allocations: 3.768 MB / 0.9007 GB, free: 36 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-05/1.417, allocations: 28 kB / 0.9007 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/1.417, allocations: 4 kB / 0.9007 GB, free: 4 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.335/1.752, allocations: 14.94 kB / 0.9007 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03115/1.784, allocations: 8.991 MB / 0.9095 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/1.784, allocations: 0.5156 kB / 0.9095 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003685/1.787, allocations: 465.4 kB / 0.9099 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/1.789, allocations: 344.5 kB / 0.9103 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003587/1.789, allocations: 7.406 kB / 0.9103 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007195/1.797, allocations: 4.76 MB / 0.9149 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/1.797, allocations: 1.938 kB / 0.9149 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/1.812, allocations: 6.866 MB / 0.9216 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001782/1.814, allocations: 459.7 kB / 0.9221 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000924/1.815, allocations: 3.625 kB / 0.9221 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003101/1.818, allocations: 120.5 kB / 0.9222 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004946/1.818, allocations: 145.1 kB / 0.9223 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002832/1.819, allocations: 69.62 kB / 0.9224 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006181/1.825, allocations: 2.578 MB / 0.9249 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.32e-07/1.825, allocations: 0 / 0.9249 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01186/1.837, allocations: 1.111 MB / 0.926 GB, free: 122.6 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 () * 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.0008385/1.838, allocations: 154.1 kB / 0.9261 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009916/1.848, allocations: 6.079 MB / 0.9321 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.848, allocations: 0 / 0.9321 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002388/1.85, allocations: 2.118 MB / 0.9341 GB, free: 122 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00295/1.853, allocations: 475 kB / 0.9346 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01809/1.871, allocations: 9.962 MB / 0.9443 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004911/1.876, allocations: 4.215 MB / 0.9484 GB, free: 116.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00658/1.883, allocations: 2.427 MB / 0.9508 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/1.884, allocations: 313 kB / 0.9511 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.353e-06/1.884, allocations: 0 / 0.9511 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.07213/1.956, allocations: 39.88 MB / 0.9901 GB, free: 106.9 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithMass/LineForceWithMass.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches