Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.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.Force2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2") translateModel(ModelicaTest.MultiBody.Forces.Force2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2") [: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.0009908/0.0009909, allocations: 174.8 kB / 8.518 MB, free: 1.828 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.273/1.273, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.0009473/0.0009472, allocations: 89.92 kB / 281.2 MB, free: 5.516 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.1814/0.1814, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.384e-06/7.394e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 61.91 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3141/0.4235, allocations: 111.5 MB / 0.603 GB, free: 1.215 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.4238, allocations: 71.97 kB / 0.6031 GB, free: 1.145 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6641/1.088, allocations: 215 MB / 0.813 GB, free: 64.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001109/1.089, allocations: 235.9 kB / 0.8133 GB, free: 64.73 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: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.03466/1.124, allocations: 11.5 MB / 0.8245 GB, free: 53.17 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/1.124, allocations: 15.97 kB / 0.8245 GB, free: 53.15 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04667/1.17, allocations: 12.17 MB / 0.8364 GB, free: 40.94 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02799/1.199, allocations: 12.31 MB / 0.8484 GB, free: 28.65 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004701/1.199, allocations: 383.9 kB / 0.8488 GB, free: 28.28 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004708/1.204, allocations: 0.6872 MB / 0.8494 GB, free: 27.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03038/1.234, allocations: 16.41 MB / 0.8655 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04799/1.282, allocations: 24.35 MB / 0.8893 GB, free: 0.7305 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000607/1.283, allocations: 154.6 kB / 0.8894 GB, free: 0.5781 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002989/1.286, allocations: 60 kB / 0.8895 GB, free: 0.5195 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1706/1.456, allocations: 2.738 MB / 0.8921 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1072/1.564, allocations: 117 MB / 1.006 GB, free: 59.56 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01046/1.574, allocations: 10.57 MB / 1.017 GB, free: 54.74 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007179/1.581, allocations: 7.496 MB / 1.024 GB, free: 51.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02871/1.61, allocations: 20.08 MB / 1.044 GB, free: 42.17 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/1.61, allocations: 86.66 kB / 1.044 GB, free: 42.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=427): time 6.592e-06/1.61, allocations: 0 / 1.044 GB, free: 42.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=511): time 0.1079/1.718, allocations: 53.35 MB / 1.096 GB, free: 0.9492 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/1.718, allocations: 365.9 kB / 1.096 GB, free: 0.5234 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1671/1.885, allocations: 7.728 MB / 1.104 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001011/1.886, allocations: 25.7 kB / 1.104 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003025/1.889, allocations: 7.126 MB / 1.111 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001989/1.891, allocations: 1.855 MB / 1.113 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007427/1.892, allocations: 0 / 1.113 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005313/1.893, allocations: 0.9035 MB / 1.113 GB, free: 120 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006641/1.899, allocations: 5.7 MB / 1.119 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009509/1.909, allocations: 13.59 MB / 1.132 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.919, allocations: 8.735 MB / 1.141 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001388/1.919, allocations: 77.16 kB / 1.141 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1834) (initialization): time 0.03296/1.952, allocations: 20.23 MB / 1.161 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/1.952, allocations: 6.125 kB / 1.161 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002732/1.953, allocations: 278.1 kB / 1.161 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007027/1.96, allocations: 3.091 MB / 1.164 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01137/1.971, allocations: 3.311 MB / 1.167 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02242/1.993, allocations: 20.35 MB / 1.187 GB, free: 98.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01075/2.004, allocations: 457.3 kB / 1.187 GB, free: 98.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002272/2.006, allocations: 0.8192 MB / 1.188 GB, free: 97.93 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1276 * Number of states: 0 () * Number of discrete variables: 138 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],force4.connectionLineColor[3],force4.connectionLineColor[2],force4.connectionLineColor[1],force4.torqueArrow.arrowLine.twoHeadedArrow,force4.torqueArrow.headAtOrigin,force4.torqueColor[3],force4.torqueColor[2],force4.torqueColor[1],force4.forceArrow.arrowLine.twoHeadedArrow,force4.forceArrow.headAtOrigin,force4.forceArrow.color[3],force4.forceArrow.color[2],force4.forceArrow.color[1],force4.forceColor[3],force4.forceColor[2],force4.forceColor[1],force3.connectionLineColor[3],force3.connectionLineColor[2],force3.connectionLineColor[1],force3.torqueArrow.arrowLine.twoHeadedArrow,force3.torqueArrow.headAtOrigin,force3.torqueColor[3],force3.torqueColor[2],force3.torqueColor[1],force3.forceArrow.arrowLine.twoHeadedArrow,force3.forceArrow.headAtOrigin,force3.forceArrow.color[3],force3.forceArrow.color[2],force3.forceArrow.color[1],force3.forceColor[3],force3.forceColor[2],force3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1716): * Single equations (assignments): 1709 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 20,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002016/2.008, allocations: 0.8374 MB / 1.189 GB, free: 97.27 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001619/2.01, allocations: 0.8322 MB / 1.19 GB, free: 96.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0187/2.029, allocations: 11.81 MB / 1.201 GB, free: 92.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.899e-05/2.029, allocations: 48.94 kB / 1.201 GB, free: 92.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.452e-05/2.029, allocations: 14.66 kB / 1.201 GB, free: 92.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.448e-05/2.029, allocations: 29 kB / 1.202 GB, free: 92.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04053/2.07, allocations: 24.35 MB / 1.225 GB, free: 76.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-05/2.07, allocations: 0 / 1.225 GB, free: 76.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004791/2.074, allocations: 0.8904 MB / 1.226 GB, free: 75.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006657/2.081, allocations: 2.617 MB / 1.229 GB, free: 73.87 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005775/2.082, allocations: 12 kB / 1.229 GB, free: 73.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02165/2.103, allocations: 19.14 MB / 1.247 GB, free: 56.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/2.103, allocations: 0 / 1.247 GB, free: 56.58 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02381/2.127, allocations: 19 MB / 1.266 GB, free: 39.92 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/2.13, allocations: 0.8169 MB / 1.267 GB, free: 39.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001979/2.132, allocations: 8 kB / 1.267 GB, free: 39.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004318/2.136, allocations: 179.2 kB / 1.267 GB, free: 38.99 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007667/2.137, allocations: 232.8 kB / 1.267 GB, free: 38.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004216/2.137, allocations: 123.7 kB / 1.267 GB, free: 38.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.1856/2.323, allocations: 5.936 MB / 1.273 GB, free: 106 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.013/2.336, allocations: 2.362 MB / 1.275 GB, free: 106 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (421): * Single equations (assignments): 414 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 17,(4,75.0%) 17,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009723/2.337, allocations: 185.2 kB / 1.276 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02143/2.358, allocations: 14.19 MB / 1.289 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/2.358, allocations: 3.281 kB / 1.289 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008633/2.367, allocations: 5.761 MB / 1.295 GB, free: 105 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004955/2.372, allocations: 0.963 MB / 1.296 GB, free: 105 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04171/2.414, allocations: 22.55 MB / 1.318 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0174/2.431, allocations: 8.771 MB / 1.327 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of SimCode: time 9.82e-07/2.431, allocations: 0 / 1.327 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.1694/2.601, allocations: 107.1 MB / 1.431 GB, free: 39.42 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Force2/Force2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches