Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.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.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2") [: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.001737/0.001737, allocations: 175.5 kB / 8.518 MB, free: 1.836 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.348/1.348, allocations: 221.4 MB / 230.3 MB, free: 7.742 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.0008418/0.0008417, allocations: 88.67 kB / 281.2 MB, free: 5.492 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.1838/0.1838, allocations: 44.14 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.853e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1001, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3601/0.4602, allocations: 115.9 MB / 0.6073 GB, free: 12.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.4605, allocations: 79.03 kB / 0.6074 GB, free: 12.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4961/0.9566, allocations: 120.9 MB / 0.7254 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002244/0.9568, allocations: 106 kB / 0.7255 GB, free: 114.9 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.01502/0.9719, allocations: 5.559 MB / 0.7309 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.9719, allocations: 19.33 kB / 0.731 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01793/0.9898, allocations: 4.295 MB / 0.7352 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02326/1.013, allocations: 6.396 MB / 0.7414 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000508/1.014, allocations: 258.5 kB / 0.7416 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002824/1.017, allocations: 322.9 kB / 0.742 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02058/1.037, allocations: 8.73 MB / 0.7505 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03233/1.07, allocations: 12.31 MB / 0.7625 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003186/1.07, allocations: 74.22 kB / 0.7626 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001364/1.071, allocations: 34.38 kB / 0.7626 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002824/1.074, allocations: 1.371 MB / 0.7639 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09047/1.165, allocations: 58.8 MB / 0.8214 GB, free: 54.02 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00638/1.171, allocations: 3.877 MB / 0.8251 GB, free: 50.31 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004868/1.176, allocations: 2.928 MB / 0.828 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02613/1.202, allocations: 12.58 MB / 0.8403 GB, free: 34.37 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/1.202, allocations: 59.81 kB / 0.8403 GB, free: 34.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=191): time 6.853e-06/1.202, allocations: 0 / 0.8403 GB, free: 34.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.0815/1.284, allocations: 30.57 MB / 0.8702 GB, free: 3.605 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/1.284, allocations: 227.7 kB / 0.8704 GB, free: 3.332 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008407/1.292, allocations: 3.704 MB / 0.874 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000788/1.293, allocations: 28.7 kB / 0.8741 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003078/1.296, allocations: 3.657 MB / 0.8776 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001772/1.298, allocations: 0.8905 MB / 0.8785 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005736/1.299, allocations: 0 / 0.8785 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004487/1.299, allocations: 0.62 MB / 0.8791 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004621/1.304, allocations: 3.154 MB / 0.8822 GB, free: 7.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1932/1.497, allocations: 7.552 MB / 0.8896 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006572/1.504, allocations: 4.808 MB / 0.8943 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001458/1.504, allocations: 48.81 kB / 0.8943 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02725/1.531, allocations: 12.71 MB / 0.9067 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/1.531, allocations: 5.812 kB / 0.9067 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002702/1.531, allocations: 160.6 kB / 0.9069 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01162/1.543, allocations: 3.586 MB / 0.9104 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005816/1.549, allocations: 1.645 MB / 0.912 GB, free: 168 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02158/1.57, allocations: 16.06 MB / 0.9277 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006395/1.577, allocations: 290.7 kB / 0.9279 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001555/1.578, allocations: 448.1 kB / 0.9284 GB, free: 164.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 716 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (885): * Single equations (assignments): 881 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001362/1.58, allocations: 495.8 kB / 0.9288 GB, free: 164 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.581, allocations: 407.8 kB / 0.9292 GB, free: 164 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/1.598, allocations: 7.756 MB / 0.9368 GB, free: 161.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/1.598, allocations: 23.38 kB / 0.9368 GB, free: 161.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.39e-05/1.598, allocations: 11.38 kB / 0.9368 GB, free: 161.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.285e-05/1.598, allocations: 16.06 kB / 0.9369 GB, free: 161.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03177/1.63, allocations: 15.94 MB / 0.9524 GB, free: 156 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.143e-05/1.63, allocations: 4.188 kB / 0.9524 GB, free: 156 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002251/1.632, allocations: 347.8 kB / 0.9528 GB, free: 156 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01183/1.644, allocations: 3.505 MB / 0.9562 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000555/1.644, allocations: 7.469 kB / 0.9562 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01924/1.664, allocations: 14.68 MB / 0.9705 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/1.664, allocations: 7.281 kB / 0.9705 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0204/1.684, allocations: 12.24 MB / 0.9825 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/1.685, allocations: 425.7 kB / 0.9829 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009298/1.686, allocations: 3.5 kB / 0.9829 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002683/1.689, allocations: 118.4 kB / 0.983 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000483/1.689, allocations: 105.7 kB / 0.9831 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.69, allocations: 63.7 kB / 0.9832 GB, free: 135 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.004347/1.694, allocations: 2.482 MB / 0.9856 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007675/1.702, allocations: 1.248 MB / 0.9868 GB, free: 131.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007815/1.702, allocations: 184.1 kB / 0.987 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01004/1.713, allocations: 7.509 MB / 0.9943 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/1.713, allocations: 4 kB / 0.9943 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003233/1.716, allocations: 2.807 MB / 0.9971 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/1.718, allocations: 398.7 kB / 0.9975 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/1.738, allocations: 10.74 MB / 1.008 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00592/1.744, allocations: 4.498 MB / 1.012 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of SimCode: time 8.51e-07/1.744, allocations: 0 / 1.012 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.09397/1.838, allocations: 59.81 MB / 1.071 GB, free: 51.78 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP2/JointUSP2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches