Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [: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.001381/0.001381, allocations: 184 kB / 8.523 MB, free: 1.762 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.205/1.205, allocations: 221.4 MB / 230.3 MB, free: 3.023 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.000957/0.0009568, allocations: 95.48 kB / 281.2 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2959/0.2959, allocations: 44.13 MB / 376.1 MB, free: 43.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.866e-06/8.886e-06, allocations: 0 / 444 MB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3058, allocations: 61.9 MB / 0.4941 GB, free: 42.42 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1342/0.4401, allocations: 107.7 MB / 0.5993 GB, free: 9.582 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.4404, allocations: 72.83 kB / 0.5993 GB, free: 9.512 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4472/0.8875, allocations: 93.14 MB / 0.6903 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002059/0.8878, allocations: 84.47 kB / 0.6904 GB, free: 101.7 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01412/0.9019, allocations: 4.485 MB / 0.6947 GB, free: 100 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.902, allocations: 9.312 kB / 0.6947 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02418/0.9262, allocations: 6.342 MB / 0.7009 GB, free: 99.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01639/0.9426, allocations: 6.048 MB / 0.7068 GB, free: 99.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002824/0.9429, allocations: 142.7 kB / 0.707 GB, free: 99.04 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002247/0.9452, allocations: 262 kB / 0.7072 GB, free: 99.03 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01236/0.9576, allocations: 6.807 MB / 0.7139 GB, free: 99 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.9742, allocations: 9.792 MB / 0.7234 GB, free: 96.33 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001785/0.9744, allocations: 66.62 kB / 0.7235 GB, free: 96.32 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005647/0.9749, allocations: 34.64 kB / 0.7235 GB, free: 96.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001195/0.9761, allocations: 1.099 MB / 0.7246 GB, free: 96.32 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04188/1.018, allocations: 46.98 MB / 0.7705 GB, free: 63.98 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003702/1.022, allocations: 3.013 MB / 0.7734 GB, free: 62.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002723/1.025, allocations: 1.942 MB / 0.7753 GB, free: 61.58 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0129/1.037, allocations: 8.359 MB / 0.7835 GB, free: 56.42 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/1.038, allocations: 52.53 kB / 0.7835 GB, free: 56.37 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 4.819e-06/1.038, allocations: 0 / 0.7835 GB, free: 56.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=236): time 0.06466/1.102, allocations: 24.64 MB / 0.8076 GB, free: 47.98 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.307e-05/1.102, allocations: 207.4 kB / 0.8078 GB, free: 47.76 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005733/1.108, allocations: 3.316 MB / 0.811 GB, free: 46.17 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000548/1.109, allocations: 29.64 kB / 0.8111 GB, free: 46.13 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001855/1.11, allocations: 2.978 MB / 0.814 GB, free: 43.45 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001337/1.112, allocations: 0.85 MB / 0.8148 GB, free: 42.68 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003581/1.112, allocations: 0 / 0.8148 GB, free: 42.68 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003938/1.113, allocations: 0.5757 MB / 0.8154 GB, free: 42.18 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00452/1.117, allocations: 3.393 MB / 0.8187 GB, free: 39.11 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005398/1.123, allocations: 7.137 MB / 0.8257 GB, free: 30.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005933/1.128, allocations: 5.011 MB / 0.8305 GB, free: 26.22 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.765e-05/1.129, allocations: 36 kB / 0.8306 GB, free: 26.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.03652/1.165, allocations: 14.67 MB / 0.8449 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/1.165, allocations: 6.969 kB / 0.8449 GB, free: 14.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001285/1.165, allocations: 136 kB / 0.845 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02214/1.187, allocations: 5.624 MB / 0.8505 GB, free: 8.684 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00586/1.193, allocations: 1.45 MB / 0.8519 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03454/1.228, allocations: 22.62 MB / 0.874 GB, free: 396 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006826/1.235, allocations: 227.5 kB / 0.8743 GB, free: 168 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001933/1.237, allocations: 396 kB / 0.8746 GB, free: 15.78 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (772): * Single equations (assignments): 767 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002377/1.239, allocations: 454.9 kB / 0.8751 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/1.24, allocations: 367.3 kB / 0.8754 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03095/1.271, allocations: 10.58 MB / 0.8858 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001234/1.272, allocations: 24 kB / 0.8858 GB, free: 4.336 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.324e-05/1.272, allocations: 11.94 kB / 0.8858 GB, free: 4.324 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-05/1.272, allocations: 15.95 kB / 0.8858 GB, free: 4.309 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2497/1.521, allocations: 19.05 MB / 0.9044 GB, free: 174.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.819e-05/1.521, allocations: 3.906 kB / 0.9044 GB, free: 174.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/1.524, allocations: 350.2 kB / 0.9047 GB, free: 174.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01965/1.543, allocations: 4.679 MB / 0.9093 GB, free: 174.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005556/1.544, allocations: 11.41 kB / 0.9093 GB, free: 174.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02424/1.568, allocations: 18.61 MB / 0.9275 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/1.568, allocations: 7.188 kB / 0.9275 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02892/1.597, allocations: 14.45 MB / 0.9416 GB, free: 167 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/1.599, allocations: 404.6 kB / 0.942 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/1.6, allocations: 12.16 kB / 0.942 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002288/1.602, allocations: 87.19 kB / 0.9421 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003601/1.602, allocations: 116.5 kB / 0.9422 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000235/1.603, allocations: 63.19 kB / 0.9423 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002958/1.606, allocations: 2.248 MB / 0.9445 GB, free: 166 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005749/1.611, allocations: 1.147 MB / 0.9456 GB, free: 166 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 47} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005924/1.612, allocations: 178.2 kB / 0.9458 GB, free: 166 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009849/1.622, allocations: 7.706 MB / 0.9533 GB, free: 163.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.622, allocations: 1.031 kB / 0.9533 GB, free: 163.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004372/1.626, allocations: 2.997 MB / 0.9562 GB, free: 162 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002716/1.629, allocations: 399.7 kB / 0.9566 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/1.649, allocations: 10.04 MB / 0.9664 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004751/1.654, allocations: 3.866 MB / 0.9702 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of SimCode: time 6.31e-07/1.654, allocations: 2.688 kB / 0.9702 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.1009/1.755, allocations: 63.48 MB / 1.032 GB, free: 109.9 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches