Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001596/0.001601, allocations: 175.7 kB / 8.149 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.693/1.693, allocations: 205.2 MB / 213.7 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001557/0.001556, allocations: 84.64 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2622/0.2622, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.147e-05/1.15e-05, allocations: 4 kB / 417.7 MB, free: 40.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2937, allocations: 58.83 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2372/0.531, allocations: 113.9 MB / 0.5766 GB, free: 1.125 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.5313, allocations: 75.95 kB / 0.5767 GB, free: 1.051 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6827/1.214, allocations: 119.3 MB / 0.6932 GB, free: 109.2 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004008/1.214, allocations: 107.8 kB / 0.6933 GB, free: 109.2 MB / 474.7 MB 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.02497/1.239, allocations: 5.563 MB / 0.6988 GB, free: 105.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/1.24, allocations: 12.41 kB / 0.6988 GB, free: 105.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03508/1.275, allocations: 4.309 MB / 0.703 GB, free: 103.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03486/1.31, allocations: 6.703 MB / 0.7095 GB, free: 98.72 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006252/1.31, allocations: 260.8 kB / 0.7098 GB, free: 98.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003473/1.314, allocations: 327.9 kB / 0.7101 GB, free: 98.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04504/1.359, allocations: 8.721 MB / 0.7186 GB, free: 89.42 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03994/1.399, allocations: 12.31 MB / 0.7306 GB, free: 75.98 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003775/1.399, allocations: 63.41 kB / 0.7307 GB, free: 75.92 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002636/1.402, allocations: 36 kB / 0.7307 GB, free: 75.88 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00392/1.406, allocations: 1.379 MB / 0.7321 GB, free: 74.51 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09598/1.502, allocations: 58.82 MB / 0.7895 GB, free: 14.19 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007552/1.509, allocations: 3.889 MB / 0.7933 GB, free: 10.16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005784/1.515, allocations: 2.923 MB / 0.7962 GB, free: 7.219 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03812/1.553, allocations: 12.6 MB / 0.8085 GB, free: 10.04 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.413e-05/1.554, allocations: 59.81 kB / 0.8085 GB, free: 9.969 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 5.491e-06/1.554, allocations: 0 / 0.8085 GB, free: 9.969 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.3133/1.867, allocations: 30.7 MB / 0.8385 GB, free: 177.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.73e-05/1.867, allocations: 230.4 kB / 0.8387 GB, free: 177 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007807/1.875, allocations: 3.726 MB / 0.8424 GB, free: 176.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00066/1.876, allocations: 33.52 kB / 0.8424 GB, free: 176.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002366/1.878, allocations: 3.589 MB / 0.8459 GB, free: 175.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00137/1.879, allocations: 0.8912 MB / 0.8468 GB, free: 174.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008315/1.88, allocations: 3.375 kB / 0.8468 GB, free: 174.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004699/1.881, allocations: 0.6212 MB / 0.8474 GB, free: 174.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00714/1.888, allocations: 3.155 MB / 0.8505 GB, free: 174.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01047/1.898, allocations: 7.55 MB / 0.8578 GB, free: 168.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/1.909, allocations: 4.795 MB / 0.8625 GB, free: 168.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001762/1.91, allocations: 44.41 kB / 0.8626 GB, free: 168.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.04837/1.958, allocations: 12.61 MB / 0.8749 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/1.958, allocations: 10.62 kB / 0.8749 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002796/1.958, allocations: 156.4 kB / 0.875 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02248/1.981, allocations: 3.531 MB / 0.8785 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01094/1.992, allocations: 1.646 MB / 0.8801 GB, free: 164.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04479/2.037, allocations: 16.84 MB / 0.8965 GB, free: 157.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008583/2.045, allocations: 271.9 kB / 0.8968 GB, free: 157.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/2.048, allocations: 452.7 kB / 0.8972 GB, free: 157.8 MB / 0.4948 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 {(1,100.0%) 59} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002452/2.05, allocations: 417.8 kB / 0.8976 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001263/2.051, allocations: 405.2 kB / 0.898 GB, free: 157.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03398/2.085, allocations: 7.767 MB / 0.9056 GB, free: 154.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001261/2.086, allocations: 22.31 kB / 0.9056 GB, free: 154.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.093e-05/2.086, allocations: 10.91 kB / 0.9056 GB, free: 154.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.223e-05/2.086, allocations: 11.95 kB / 0.9056 GB, free: 154.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05473/2.14, allocations: 15.96 MB / 0.9212 GB, free: 144.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.71e-05/2.14, allocations: 0 / 0.9212 GB, free: 144.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003955/2.144, allocations: 347.7 kB / 0.9216 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02246/2.167, allocations: 3.501 MB / 0.925 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004929/2.167, allocations: 7.75 kB / 0.925 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03621/2.204, allocations: 14.68 MB / 0.9393 GB, free: 129 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/2.204, allocations: 8.062 kB / 0.9393 GB, free: 129 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03941/2.243, allocations: 12.24 MB / 0.9513 GB, free: 117.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003142/2.246, allocations: 0.8979 MB / 0.9522 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/2.247, allocations: 4 kB / 0.9522 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004127/2.252, allocations: 115.9 kB / 0.9523 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005344/2.252, allocations: 109.7 kB / 0.9524 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003463/2.252, allocations: 63.98 kB / 0.9524 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.005054/2.257, allocations: 2.506 MB / 0.9549 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008653/2.266, allocations: 1.242 MB / 0.9561 GB, free: 112.9 MB / 0.4948 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.0008381/2.267, allocations: 190.4 kB / 0.9563 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01559/2.283, allocations: 7.497 MB / 0.9636 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/2.283, allocations: 0 / 0.9636 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00586/2.289, allocations: 2.811 MB / 0.9663 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003366/2.292, allocations: 406.2 kB / 0.9667 GB, free: 102 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03074/2.323, allocations: 11.4 MB / 0.9779 GB, free: 90.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008982/2.332, allocations: 4.53 MB / 0.9823 GB, free: 86.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.382e-06/2.332, allocations: 0 / 0.9823 GB, free: 86.02 MB / 0.4948 GB Notification: Performance of Templates: time 0.3598/2.692, allocations: 101 MB / 1.081 GB, free: 143.4 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUSP2/JointUSP2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches