Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0008681/0.0008682, allocations: 187.3 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.012/1.012, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007992/0.0007994, allocations: 94.52 kB / 261.4 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1443/0.1443, allocations: 43.51 MB / 352.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.011e-06/6.021e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2015, allocations: 58.84 MB / 476.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.116/0.3176, allocations: 112 MB / 0.5747 GB, free: 2.922 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001554/0.3178, allocations: 79.91 kB / 0.5748 GB, free: 2.844 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4422/0.76, allocations: 131.8 MB / 0.7035 GB, free: 100.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004947/0.7605, allocations: 136.4 kB / 0.7036 GB, free: 100.1 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02306/0.7836, allocations: 6.904 MB / 0.7104 GB, free: 95.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.7836, allocations: 13.52 kB / 0.7104 GB, free: 95.68 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02688/0.8105, allocations: 6.993 MB / 0.7172 GB, free: 89.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02124/0.8318, allocations: 9.864 MB / 0.7268 GB, free: 79.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002907/0.8321, allocations: 208 kB / 0.727 GB, free: 79.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002572/0.8347, allocations: 395.7 kB / 0.7274 GB, free: 79.23 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01477/0.8495, allocations: 10.08 MB / 0.7373 GB, free: 69.14 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/0.8743, allocations: 14.63 MB / 0.7516 GB, free: 53.08 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005142/0.8749, allocations: 107 kB / 0.7517 GB, free: 52.97 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002482/0.8774, allocations: 40 kB / 0.7517 GB, free: 52.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002179/0.8796, allocations: 1.708 MB / 0.7534 GB, free: 51.22 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07602/0.9556, allocations: 75.99 MB / 0.8276 GB, free: 5.082 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1331/1.089, allocations: 5.337 MB / 0.8328 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004302/1.093, allocations: 4.347 MB / 0.837 GB, free: 166.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0171/1.11, allocations: 14.33 MB / 0.851 GB, free: 162 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/1.11, allocations: 63.91 kB / 0.8511 GB, free: 161.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=287): time 4.699e-06/1.11, allocations: 0 / 0.8511 GB, free: 161.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=369): time 0.08209/1.192, allocations: 38.62 MB / 0.8888 GB, free: 152.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.496e-05/1.192, allocations: 278 kB / 0.8891 GB, free: 152.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006267/1.199, allocations: 4.757 MB / 0.8937 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000677/1.199, allocations: 25.7 kB / 0.8937 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00178/1.201, allocations: 4.315 MB / 0.898 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001132/1.202, allocations: 1.316 MB / 0.8992 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003704/1.203, allocations: 0 / 0.8992 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003732/1.203, allocations: 0.7076 MB / 0.8999 GB, free: 146 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003914/1.207, allocations: 3.687 MB / 0.9035 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006168/1.213, allocations: 9.024 MB / 0.9123 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007285/1.22, allocations: 6.019 MB / 0.9182 GB, free: 134.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.916e-05/1.221, allocations: 54.56 kB / 0.9183 GB, free: 134.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.02709/1.248, allocations: 15.12 MB / 0.933 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/1.248, allocations: 12.06 kB / 0.9331 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/1.248, allocations: 188 kB / 0.9332 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/1.259, allocations: 3.789 MB / 0.9369 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006557/1.266, allocations: 2.081 MB / 0.939 GB, free: 120 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02602/1.292, allocations: 19.94 MB / 0.9584 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007034/1.299, allocations: 336 kB / 0.9588 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/1.3, allocations: 0.5467 MB / 0.9593 GB, free: 102 MB / 0.4948 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.001114/1.301, allocations: 0.5786 MB / 0.9599 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007061/1.302, allocations: 0.5498 MB / 0.9604 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01806/1.32, allocations: 9.469 MB / 0.9696 GB, free: 93.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.333e-05/1.32, allocations: 32 kB / 0.9697 GB, free: 93.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/1.32, allocations: 23.91 kB / 0.9697 GB, free: 93.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.225e-05/1.32, allocations: 18.38 kB / 0.9697 GB, free: 93.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03072/1.351, allocations: 17.95 MB / 0.9872 GB, free: 75.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/1.351, allocations: 7.938 kB / 0.9872 GB, free: 75.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002293/1.353, allocations: 483.3 kB / 0.9877 GB, free: 75.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01071/1.364, allocations: 3.417 MB / 0.991 GB, free: 71.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003201/1.364, allocations: 15.98 kB / 0.9911 GB, free: 71.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02333/1.388, allocations: 18.37 MB / 1.009 GB, free: 53.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.388, allocations: 0 / 1.009 GB, free: 53.36 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02158/1.409, allocations: 14.27 MB / 1.023 GB, free: 39.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/1.412, allocations: 1.083 MB / 1.024 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008158/1.413, allocations: 7.125 kB / 1.024 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002472/1.415, allocations: 111.8 kB / 1.024 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004027/1.416, allocations: 170.2 kB / 1.024 GB, free: 37.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002717/1.416, allocations: 99.98 kB / 1.024 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003681/1.42, allocations: 3.216 MB / 1.028 GB, free: 34.35 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006151/1.426, allocations: 1.571 MB / 1.029 GB, free: 32.79 MB / 0.4948 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.0005216/1.426, allocations: 190.3 kB / 1.029 GB, free: 32.61 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.1507/1.577, allocations: 9.203 MB / 1.038 GB, free: 151.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.577, allocations: 0 / 1.038 GB, free: 151.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004409/1.581, allocations: 3.588 MB / 1.042 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003219/1.585, allocations: 0.5816 MB / 1.042 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02274/1.607, allocations: 13.39 MB / 1.055 GB, free: 148.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005813/1.613, allocations: 5.393 MB / 1.061 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.062e-06/1.613, allocations: 0 / 1.061 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.1101/1.723, allocations: 76.69 MB / 1.136 GB, free: 119 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches