Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") [: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.002429/0.002428, allocations: 172.2 kB / 8.149 MB, free: 2.223 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.943/1.943, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001196/0.001195, allocations: 99.22 kB / 261.8 MB, free: 13.62 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.2661/0.2661, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.078e-05/1.093e-05, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2823, allocations: 58.83 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2018/0.4843, allocations: 111.9 MB / 0.5746 GB, free: 3.133 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.4846, allocations: 79.94 kB / 0.5747 GB, free: 3.055 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.7769/1.262, allocations: 131.8 MB / 0.7034 GB, free: 82.15 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004747/1.262, allocations: 132 kB / 0.7035 GB, free: 82.02 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03011/1.292, allocations: 6.897 MB / 0.7103 GB, free: 75.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/1.292, allocations: 8.031 kB / 0.7103 GB, free: 75.61 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05054/1.343, allocations: 6.991 MB / 0.7171 GB, free: 69.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0357/1.379, allocations: 9.86 MB / 0.7267 GB, free: 61.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004077/1.379, allocations: 212 kB / 0.7269 GB, free: 61.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003626/1.383, allocations: 395.2 kB / 0.7273 GB, free: 60.92 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02578/1.409, allocations: 10.05 MB / 0.7371 GB, free: 54.09 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03746/1.446, allocations: 14.59 MB / 0.7514 GB, free: 38.06 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004475/1.447, allocations: 103.1 kB / 0.7515 GB, free: 37.96 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001809/1.448, allocations: 44 kB / 0.7515 GB, free: 37.91 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003461/1.452, allocations: 1.693 MB / 0.7532 GB, free: 36.22 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1297/1.582, allocations: 75.93 MB / 0.8273 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/1.594, allocations: 5.319 MB / 0.8325 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.187/1.781, allocations: 4.278 MB / 0.8367 GB, free: 184.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03453/1.816, allocations: 14.28 MB / 0.8506 GB, free: 179.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/1.816, allocations: 69.06 kB / 0.8507 GB, free: 179.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 7.013e-06/1.816, allocations: 0 / 0.8507 GB, free: 179.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.1749/1.991, allocations: 38.5 MB / 0.8883 GB, free: 171.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/1.991, allocations: 272.1 kB / 0.8886 GB, free: 171.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01228/2.003, allocations: 4.762 MB / 0.8932 GB, free: 169.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009582/2.004, allocations: 27.11 kB / 0.8932 GB, free: 169.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003213/2.008, allocations: 4.157 MB / 0.8973 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002355/2.01, allocations: 1.297 MB / 0.8986 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001182/2.011, allocations: 1.25 kB / 0.8986 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000697/2.012, allocations: 0.7102 MB / 0.8993 GB, free: 164.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01021/2.022, allocations: 3.667 MB / 0.9028 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01401/2.036, allocations: 8.998 MB / 0.9116 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01583/2.052, allocations: 5.997 MB / 0.9175 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002766/2.052, allocations: 53.06 kB / 0.9175 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.05909/2.112, allocations: 14.96 MB / 0.9322 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/2.112, allocations: 4 kB / 0.9322 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003187/2.112, allocations: 188 kB / 0.9323 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02487/2.137, allocations: 3.75 MB / 0.936 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01408/2.151, allocations: 2.064 MB / 0.938 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05467/2.206, allocations: 20.55 MB / 0.9581 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01023/2.216, allocations: 304.7 kB / 0.9584 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/2.218, allocations: 0.5468 MB / 0.9589 GB, free: 119.3 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 (1114): * Single equations (assignments): 1109 * 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%) 45,(1,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002092/2.22, allocations: 0.503 MB / 0.9594 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001572/2.222, allocations: 0.5428 MB / 0.9599 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04102/2.263, allocations: 9.474 MB / 0.9692 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001232/2.263, allocations: 43.84 kB / 0.9692 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.045e-05/2.263, allocations: 16.52 kB / 0.9692 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.69e-05/2.263, allocations: 16.41 kB / 0.9693 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06675/2.33, allocations: 17.94 MB / 0.9868 GB, free: 93.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.127e-05/2.33, allocations: 4 kB / 0.9868 GB, free: 93.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005322/2.335, allocations: 475.3 kB / 0.9872 GB, free: 93.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02476/2.36, allocations: 3.468 MB / 0.9906 GB, free: 89.58 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009452/2.361, allocations: 15.98 kB / 0.9906 GB, free: 89.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05083/2.412, allocations: 18.42 MB / 1.009 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/2.412, allocations: 11.92 kB / 1.009 GB, free: 70.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04943/2.462, allocations: 14.21 MB / 1.023 GB, free: 56.63 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004374/2.466, allocations: 1.084 MB / 1.024 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002039/2.468, allocations: 8 kB / 1.024 GB, free: 55.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006346/2.474, allocations: 131.7 kB / 1.024 GB, free: 55.38 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001192/2.476, allocations: 162.1 kB / 1.024 GB, free: 55.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004912/2.476, allocations: 99.98 kB / 1.024 GB, free: 55.12 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.008292/2.484, allocations: 3.216 MB / 1.027 GB, free: 51.94 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01228/2.497, allocations: 1.572 MB / 1.029 GB, free: 50.38 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 (259): * Single equations (assignments): 254 * 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.001378/2.498, allocations: 185.5 kB / 1.029 GB, free: 50.21 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02188/2.52, allocations: 9.098 MB / 1.038 GB, free: 41.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/2.52, allocations: 4 kB / 1.038 GB, free: 41.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008793/2.529, allocations: 3.555 MB / 1.041 GB, free: 37.54 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005679/2.535, allocations: 0.5673 MB / 1.042 GB, free: 36.98 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2236/2.758, allocations: 14.08 MB / 1.055 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01457/2.773, allocations: 5.427 MB / 1.061 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.923e-06/2.773, allocations: 3.188 kB / 1.061 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.2744/3.047, allocations: 150.1 MB / 1.207 GB, free: 71.96 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches