Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,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.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_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 178.8 kB / 8.519 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.217/1.217, allocations: 221.4 MB / 230.3 MB, free: 3.172 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.0009223/0.0009225, allocations: 98.52 kB / 281.2 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4142/0.4142, allocations: 44.14 MB / 376.1 MB, free: 43.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.684e-06/7.715e-06, allocations: 0 / 444 MB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2559, allocations: 61.91 MB / 0.4941 GB, free: 42.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.3838, allocations: 113.9 MB / 0.6053 GB, free: 3.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.3841, allocations: 75.95 kB / 0.6054 GB, free: 3.266 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4969/0.881, allocations: 133.3 MB / 0.7356 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003389/0.8814, allocations: 129.7 kB / 0.7357 GB, free: 101.5 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.01808/0.8995, allocations: 6.884 MB / 0.7424 GB, free: 98.87 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.8996, allocations: 11.41 kB / 0.7424 GB, free: 98.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02844/0.928, allocations: 6.986 MB / 0.7492 GB, free: 98.36 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02307/0.9511, allocations: 9.241 MB / 0.7583 GB, free: 95.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000346/0.9515, allocations: 213.2 kB / 0.7585 GB, free: 95.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002776/0.9543, allocations: 397 kB / 0.7589 GB, free: 95.28 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01752/0.9718, allocations: 10.08 MB / 0.7687 GB, free: 91.92 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02737/0.9992, allocations: 14.62 MB / 0.783 GB, free: 83.32 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002497/0.9995, allocations: 99.11 kB / 0.7831 GB, free: 83.22 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007667/1, allocations: 44 kB / 0.7831 GB, free: 83.18 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001807/1.002, allocations: 1.7 MB / 0.7848 GB, free: 81.48 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07569/1.078, allocations: 75.9 MB / 0.8589 GB, free: 3.535 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006844/1.085, allocations: 5.344 MB / 0.8641 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005746/1.09, allocations: 4.345 MB / 0.8684 GB, free: 9.695 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1649/1.255, allocations: 14.28 MB / 0.8823 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/1.256, allocations: 67.38 kB / 0.8824 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=287): time 5.851e-06/1.256, allocations: 1.5 kB / 0.8824 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=369): time 0.08523/1.341, allocations: 38.39 MB / 0.9199 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/1.341, allocations: 274.8 kB / 0.9201 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006171/1.347, allocations: 4.704 MB / 0.9247 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008218/1.348, allocations: 29.42 kB / 0.9248 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002013/1.35, allocations: 4.315 MB / 0.929 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001345/1.351, allocations: 1.313 MB / 0.9302 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/1.352, allocations: 0 / 0.9302 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000346/1.352, allocations: 0.7044 MB / 0.9309 GB, free: 151 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004107/1.356, allocations: 3.682 MB / 0.9345 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005915/1.362, allocations: 9.029 MB / 0.9433 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00911/1.371, allocations: 6.016 MB / 0.9492 GB, free: 139.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/1.371, allocations: 55.84 kB / 0.9493 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.03188/1.403, allocations: 15.12 MB / 0.964 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/1.403, allocations: 5.188 kB / 0.9641 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002568/1.404, allocations: 189.8 kB / 0.9642 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01332/1.417, allocations: 3.794 MB / 0.9679 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007971/1.425, allocations: 2.075 MB / 0.97 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02842/1.453, allocations: 19.94 MB / 0.9894 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007833/1.461, allocations: 325.3 kB / 0.9898 GB, free: 117 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/1.463, allocations: 0.554 MB / 0.9903 GB, free: 116.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1120): * Single equations (assignments): 1115 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001484/1.464, allocations: 0.5868 MB / 0.9909 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/1.465, allocations: 0.5322 MB / 0.9914 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0203/1.486, allocations: 9.468 MB / 1.001 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.05e-05/1.486, allocations: 35.7 kB / 1.001 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.395e-05/1.486, allocations: 19.38 kB / 1.001 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.882e-05/1.486, allocations: 19.94 kB / 1.001 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03477/1.521, allocations: 17.94 MB / 1.018 GB, free: 93.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.199e-05/1.521, allocations: 4 kB / 1.018 GB, free: 93.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002887/1.524, allocations: 482 kB / 1.019 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01234/1.536, allocations: 3.413 MB / 1.022 GB, free: 90.15 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000703/1.537, allocations: 11.98 kB / 1.022 GB, free: 90.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02504/1.562, allocations: 18.38 MB / 1.04 GB, free: 71.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.562, allocations: 3.906 kB / 1.04 GB, free: 71.53 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02297/1.585, allocations: 14.25 MB / 1.054 GB, free: 57.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/1.586, allocations: 0.537 MB / 1.054 GB, free: 56.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009064/1.587, allocations: 3.938 kB / 1.054 GB, free: 56.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002569/1.59, allocations: 117.8 kB / 1.055 GB, free: 56.53 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004251/1.59, allocations: 166.2 kB / 1.055 GB, free: 56.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002945/1.59, allocations: 95.98 kB / 1.055 GB, free: 56.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003856/1.594, allocations: 3.179 MB / 1.058 GB, free: 53.12 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007834/1.602, allocations: 1.576 MB / 1.059 GB, free: 51.55 MB / 0.5105 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 (265): * Single equations (assignments): 260 * 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%) 40,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007688/1.603, allocations: 183.5 kB / 1.06 GB, free: 51.38 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01167/1.615, allocations: 9.204 MB / 1.069 GB, free: 42.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/1.615, allocations: 4 kB / 1.069 GB, free: 42.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004179/1.619, allocations: 3.588 MB / 1.072 GB, free: 38.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002868/1.622, allocations: 0.5687 MB / 1.073 GB, free: 38.03 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1782/1.8, allocations: 13.35 MB / 1.086 GB, free: 148.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006594/1.807, allocations: 5.375 MB / 1.091 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.723e-06/1.807, allocations: 0 / 1.091 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.122/1.929, allocations: 76.66 MB / 1.166 GB, free: 130.5 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches