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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 108.1 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2345/0.2345, allocations: 44.18 MB / 336.1 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 65.09 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1397, allocations: 60.82 MB / 468.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.3359/0.4757, allocations: 63.93 MB / 0.52 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03496/0.5107, allocations: 13.08 MB / 0.5327 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01583/0.5266, allocations: 286.2 kB / 0.533 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008112/0.5347, allocations: 4.007 MB / 0.5369 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008111/0.5429, allocations: 2.213 MB / 0.5391 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003466/0.5464, allocations: 1.067 MB / 0.5401 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01587/0.5623, allocations: 9.354 MB / 0.5493 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01188/0.5743, allocations: 4.621 MB / 0.5538 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005305/0.5796, allocations: 2 MB / 0.5557 GB, free: 8.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006085/0.5858, allocations: 3.216 MB / 0.5589 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002968/0.5888, allocations: 328 kB / 0.5592 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005387/0.5942, allocations: 1.512 MB / 0.5607 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004644/0.5989, allocations: 2.612 MB / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007204/0.6061, allocations: 2.896 MB / 0.566 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.6209, allocations: 9.069 MB / 0.5749 GB, free: 5.371 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.6209, allocations: 0 / 0.5749 GB, free: 5.371 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.621, allocations: 0 / 0.5749 GB, free: 5.371 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004204/0.6214, allocations: 0 / 0.5749 GB, free: 5.371 MB / 414.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.02156/0.643, allocations: 6.75 MB / 0.5815 GB, free: 14.66 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.643, allocations: 8.031 kB / 0.5815 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02494/0.668, allocations: 3.296 MB / 0.5847 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.6805, allocations: 4.098 MB / 0.5887 GB, free: 7.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003932/0.6809, allocations: 309.1 kB / 0.589 GB, free: 6.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002183/0.6831, allocations: 429.8 kB / 0.5894 GB, free: 6.605 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02896/0.7121, allocations: 13.82 MB / 0.6029 GB, free: 8.055 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002787/0.7124, allocations: 59.52 kB / 0.603 GB, free: 7.996 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001488/0.7139, allocations: 205.3 kB / 0.6032 GB, free: 7.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004504/0.7185, allocations: 2.521 MB / 0.6056 GB, free: 5.328 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02764/0.7461, allocations: 11.8 MB / 0.6172 GB, free: 9.523 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07904/0.8252, allocations: 53.71 MB / 0.6696 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0178/0.843, allocations: 5.905 MB / 0.6754 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005851/0.8489, allocations: 3.595 MB / 0.6789 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02684/0.8758, allocations: 15.44 MB / 0.694 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.39e-05/0.8759, allocations: 68.48 kB / 0.694 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=230): time 4.799e-06/0.8759, allocations: 3.938 kB / 0.694 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of matching and sorting (n=267): time 0.3076/1.184, allocations: 28.59 MB / 0.722 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.157e-05/1.184, allocations: 264.8 kB / 0.7222 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006567/1.19, allocations: 5.06 MB / 0.7271 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005473/1.191, allocations: 68.58 kB / 0.7272 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001939/1.193, allocations: 3.885 MB / 0.731 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001139/1.194, allocations: 1.005 MB / 0.732 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001791/1.196, allocations: 1.546 MB / 0.7335 GB, free: 179 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.316e-05/1.196, allocations: 305.1 kB / 0.7338 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003573/1.199, allocations: 3.008 MB / 0.7367 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005514/1.205, allocations: 7.354 MB / 0.7439 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009896/1.215, allocations: 11.09 MB / 0.7547 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000117/1.215, allocations: 47.38 kB / 0.7548 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.01802/1.233, allocations: 11.2 MB / 0.7657 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.485e-05/1.233, allocations: 68 kB / 0.7658 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001228/1.233, allocations: 152 kB / 0.7659 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002929/1.236, allocations: 1.232 MB / 0.7671 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006812/1.243, allocations: 1.833 MB / 0.7689 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008019/1.251, allocations: 7.765 MB / 0.7765 GB, free: 135 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00645/1.257, allocations: 419.4 kB / 0.7769 GB, free: 134.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/1.259, allocations: 459.9 kB / 0.7773 GB, free: 134.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (954): * Single equations (assignments): 949 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005238/1.264, allocations: 2.633 MB / 0.7799 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/1.266, allocations: 469.8 kB / 0.7804 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009292/1.275, allocations: 5.243 MB / 0.7855 GB, free: 125.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-05/1.275, allocations: 28 kB / 0.7855 GB, free: 125.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.202e-05/1.275, allocations: 4 kB / 0.7855 GB, free: 125.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.993e-05/1.275, allocations: 15.95 kB / 0.7855 GB, free: 125.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02171/1.297, allocations: 11.73 MB / 0.797 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/1.297, allocations: 0 / 0.797 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002555/1.299, allocations: 0.4993 MB / 0.7975 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002494/1.302, allocations: 0.9892 MB / 0.7984 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004156/1.302, allocations: 47.92 kB / 0.7985 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006488/1.309, allocations: 7.113 MB / 0.8054 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.309, allocations: 4 kB / 0.8054 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01307/1.322, allocations: 8.733 MB / 0.814 GB, free: 96.31 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/1.324, allocations: 0.4913 MB / 0.8144 GB, free: 95.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001774/1.326, allocations: 39.94 kB / 0.8145 GB, free: 95.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003432/1.329, allocations: 172.3 kB / 0.8146 GB, free: 95.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008799/1.33, allocations: 153.7 kB / 0.8148 GB, free: 95.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005304/1.331, allocations: 71.98 kB / 0.8149 GB, free: 95.37 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005888/1.336, allocations: 3.162 MB / 0.8179 GB, free: 92.22 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.01e-07/1.337, allocations: 0 / 0.8179 GB, free: 92.22 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008522/1.345, allocations: 1.372 MB / 0.8193 GB, free: 90.86 MB / 0.5294 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 (227): * Single equations (assignments): 222 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009934/1.346, allocations: 183.7 kB / 0.8195 GB, free: 90.67 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01076/1.357, allocations: 7.318 MB / 0.8266 GB, free: 83.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.357, allocations: 0 / 0.8266 GB, free: 83.36 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003727/1.361, allocations: 2.57 MB / 0.8291 GB, free: 80.77 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005911/1.367, allocations: 0.5634 MB / 0.8297 GB, free: 80.21 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02815/1.395, allocations: 15.53 MB / 0.8448 GB, free: 64.66 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007231/1.402, allocations: 4.104 MB / 0.8488 GB, free: 60.53 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007304/1.409, allocations: 2.368 MB / 0.8511 GB, free: 58.15 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001866/1.411, allocations: 323.4 kB / 0.8515 GB, free: 57.84 MB / 0.5294 GB Notification: Performance of SimCode: time 8.71e-07/1.411, allocations: 0 / 0.8515 GB, free: 57.84 MB / 0.5294 GB Notification: Performance of Templates: time 0.3037/1.715, allocations: 50.18 MB / 0.9005 GB, free: 171.6 MB / 0.5294 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches