Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") [: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.0009393/0.0009395, 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.241/1.241, allocations: 221.4 MB / 230.3 MB, free: 7.637 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.0009238/0.0009237, allocations: 89.94 kB / 281.2 MB, free: 5.453 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.1686/0.1686, allocations: 44.16 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.003e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1333, allocations: 61.91 MB / 0.4941 GB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3338/0.4671, allocations: 110.5 MB / 0.602 GB, free: 2.227 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.4674, allocations: 75.95 kB / 0.6021 GB, free: 2.152 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5254/0.9928, allocations: 124.4 MB / 0.7236 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002476/0.9931, allocations: 119 kB / 0.7237 GB, free: 106.3 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0176/1.011, allocations: 6.153 MB / 0.7297 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/1.011, allocations: 13.09 kB / 0.7297 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03172/1.042, allocations: 7.629 MB / 0.7371 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01751/1.06, allocations: 7.105 MB / 0.7441 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/1.06, allocations: 193.6 kB / 0.7443 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002681/1.063, allocations: 352.8 kB / 0.7446 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0161/1.079, allocations: 10.43 MB / 0.7548 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03481/1.114, allocations: 14.35 MB / 0.7688 GB, free: 95.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007221/1.115, allocations: 69.73 kB / 0.7689 GB, free: 95.21 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004917/1.12, allocations: 35.12 kB / 0.7689 GB, free: 95.21 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004232/1.124, allocations: 1.73 MB / 0.7706 GB, free: 94.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08708/1.211, allocations: 62.43 MB / 0.8316 GB, free: 41.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006319/1.218, allocations: 4.677 MB / 0.8361 GB, free: 36.62 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004858/1.222, allocations: 3.626 MB / 0.8397 GB, free: 33.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02661/1.249, allocations: 15.51 MB / 0.8548 GB, free: 17.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.561e-05/1.249, allocations: 60.56 kB / 0.8549 GB, free: 17.13 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=295): time 8.606e-06/1.249, allocations: 4 kB / 0.8549 GB, free: 17.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=345): time 0.07842/1.328, allocations: 29.09 MB / 0.8833 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/1.328, allocations: 210.3 kB / 0.8835 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2023/1.53, allocations: 4.336 MB / 0.8877 GB, free: 168.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008826/1.531, allocations: 29.3 kB / 0.8877 GB, free: 168.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0029/1.534, allocations: 4.176 MB / 0.8918 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001717/1.536, allocations: 1.242 MB / 0.893 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008632/1.537, allocations: 0 / 0.893 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000462/1.537, allocations: 0.6983 MB / 0.8937 GB, free: 166.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005588/1.543, allocations: 4.552 MB / 0.8982 GB, free: 166.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008533/1.551, allocations: 9.744 MB / 0.9077 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008888/1.56, allocations: 6.607 MB / 0.9141 GB, free: 159.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/1.56, allocations: 52.06 kB / 0.9142 GB, free: 159.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1206) (initialization): time 0.04284/1.603, allocations: 17.71 MB / 0.9315 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/1.603, allocations: 7.281 kB / 0.9315 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005026/1.604, allocations: 184.4 kB / 0.9317 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02198/1.626, allocations: 5.339 MB / 0.9369 GB, free: 156.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008638/1.634, allocations: 2.097 MB / 0.9389 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02656/1.661, allocations: 20.88 MB / 0.9593 GB, free: 146.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008681/1.67, allocations: 321.3 kB / 0.9596 GB, free: 146.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00278/1.673, allocations: 0.5289 MB / 0.9601 GB, free: 146.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 841 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1115): * Single equations (assignments): 1107 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004142/1.677, allocations: 0.5708 MB / 0.9607 GB, free: 146 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/1.679, allocations: 476.9 kB / 0.9611 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03566/1.714, allocations: 12.08 MB / 0.9729 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001638/1.714, allocations: 47.94 kB / 0.973 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.373e-05/1.714, allocations: 8 kB / 0.973 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001115/1.715, allocations: 12.94 kB / 0.973 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05363/1.768, allocations: 22.53 MB / 0.995 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.084e-05/1.768, allocations: 4 kB / 0.995 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003475/1.772, allocations: 0.5232 MB / 0.9955 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01862/1.79, allocations: 4.334 MB / 0.9998 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009394/1.791, allocations: 8 kB / 0.9998 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02085/1.812, allocations: 16.8 MB / 1.016 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/1.812, allocations: 4 kB / 1.016 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03383/1.846, allocations: 17.31 MB / 1.033 GB, free: 89.47 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/1.848, allocations: 0.4949 MB / 1.034 GB, free: 88.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001664/1.85, allocations: 8 kB / 1.034 GB, free: 88.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003191/1.853, allocations: 131.8 kB / 1.034 GB, free: 88.82 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005631/1.853, allocations: 157.6 kB / 1.034 GB, free: 88.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003174/1.854, allocations: 84 kB / 1.034 GB, free: 88.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.004564/1.858, allocations: 2.904 MB / 1.037 GB, free: 85.69 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009217/1.868, allocations: 1.479 MB / 1.038 GB, free: 84.21 MB / 0.5105 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 (260): * Single equations (assignments): 252 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009075/1.868, allocations: 172.3 kB / 1.038 GB, free: 84.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01461/1.883, allocations: 10.31 MB / 1.048 GB, free: 73.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.883, allocations: 0 / 1.048 GB, free: 73.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005434/1.889, allocations: 3.905 MB / 1.052 GB, free: 69.84 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003806/1.892, allocations: 451.5 kB / 1.053 GB, free: 69.41 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0337/1.926, allocations: 13.71 MB / 1.066 GB, free: 55.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01147/1.938, allocations: 5.131 MB / 1.071 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of SimCode: time 6.11e-07/1.938, allocations: 4 kB / 1.071 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of Templates: time 0.3441/2.282, allocations: 77.48 MB / 1.147 GB, free: 143.7 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches