Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002296/0.002296, allocations: 169.4 kB / 8.143 MB, free: 2.203 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.837/1.837, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001289/0.001288, allocations: 90.61 kB / 261.8 MB, free: 13.61 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.2587/0.2587, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.235e-06/8.506e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2978, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2097/0.5075, allocations: 105.8 MB / 0.5687 GB, free: 9.195 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.5078, allocations: 67.97 kB / 0.5688 GB, free: 9.129 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5901/1.098, allocations: 91.91 MB / 0.6585 GB, free: 107.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003065/1.098, allocations: 87.66 kB / 0.6586 GB, free: 107.3 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01765/1.116, allocations: 4.5 MB / 0.663 GB, free: 105.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/1.116, allocations: 9.906 kB / 0.663 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04471/1.161, allocations: 6.337 MB / 0.6692 GB, free: 105.1 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02323/1.184, allocations: 6.394 MB / 0.6755 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002625/1.184, allocations: 139 kB / 0.6756 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002331/1.187, allocations: 264.6 kB / 0.6759 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01742/1.204, allocations: 6.816 MB / 0.6825 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0262/1.23, allocations: 9.789 MB / 0.6921 GB, free: 98.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003341/1.231, allocations: 70.44 kB / 0.6921 GB, free: 98.42 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001805/1.233, allocations: 29.78 kB / 0.6922 GB, free: 98.42 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002471/1.235, allocations: 1.094 MB / 0.6932 GB, free: 98.23 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07606/1.311, allocations: 47.04 MB / 0.7392 GB, free: 62.08 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006327/1.318, allocations: 3.029 MB / 0.7421 GB, free: 59.18 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004253/1.322, allocations: 1.937 MB / 0.744 GB, free: 57.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02032/1.342, allocations: 8.366 MB / 0.7522 GB, free: 49.29 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/1.342, allocations: 63.33 kB / 0.7522 GB, free: 49.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=180): time 5.52e-06/1.342, allocations: 0 / 0.7522 GB, free: 49.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=236): time 0.1249/1.467, allocations: 24.75 MB / 0.7764 GB, free: 24.47 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.303e-05/1.467, allocations: 209.9 kB / 0.7766 GB, free: 24.22 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/1.478, allocations: 3.337 MB / 0.7799 GB, free: 20.86 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008619/1.479, allocations: 29.64 kB / 0.7799 GB, free: 20.82 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003122/1.482, allocations: 2.902 MB / 0.7827 GB, free: 17.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002177/1.484, allocations: 0.8479 MB / 0.7836 GB, free: 17.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001337/1.485, allocations: 0 / 0.7836 GB, free: 17.02 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008081/1.486, allocations: 0.5836 MB / 0.7841 GB, free: 16.42 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01098/1.497, allocations: 3.394 MB / 0.7875 GB, free: 13.02 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01444/1.512, allocations: 7.14 MB / 0.7944 GB, free: 4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01618/1.528, allocations: 5.013 MB / 0.7993 GB, free: 14.98 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001474/1.528, allocations: 36 kB / 0.7994 GB, free: 14.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.08008/1.608, allocations: 14.55 MB / 0.8136 GB, free: 412 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/1.608, allocations: 4 kB / 0.8136 GB, free: 408 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002298/1.609, allocations: 132 kB / 0.8137 GB, free: 276 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04823/1.657, allocations: 5.594 MB / 0.8192 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01079/1.668, allocations: 1.447 MB / 0.8206 GB, free: 9.219 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2264/1.894, allocations: 22.64 MB / 0.8427 GB, free: 171.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007682/1.902, allocations: 221.9 kB / 0.8429 GB, free: 171.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001804/1.904, allocations: 396.1 kB / 0.8433 GB, free: 171.2 MB / 0.4948 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 {(4,75.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002607/1.907, allocations: 369.3 kB / 0.8436 GB, free: 171.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001212/1.908, allocations: 371.5 kB / 0.844 GB, free: 171.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05827/1.966, allocations: 10.61 MB / 0.8543 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/1.966, allocations: 19.38 kB / 0.8544 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.557e-05/1.966, allocations: 9.938 kB / 0.8544 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.296e-05/1.966, allocations: 16.2 kB / 0.8544 GB, free: 170.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07956/2.046, allocations: 19.07 MB / 0.873 GB, free: 162.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.393e-05/2.046, allocations: 3.406 kB / 0.873 GB, free: 162.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004003/2.05, allocations: 343 kB / 0.8733 GB, free: 162.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04096/2.091, allocations: 4.683 MB / 0.8779 GB, free: 162.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000697/2.092, allocations: 15 kB / 0.8779 GB, free: 162.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04909/2.141, allocations: 18.6 MB / 0.8961 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-05/2.141, allocations: 6.469 kB / 0.8961 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06176/2.203, allocations: 14.45 MB / 0.9102 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004075/2.207, allocations: 0.9249 MB / 0.9111 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/2.209, allocations: 16.44 kB / 0.9111 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005256/2.214, allocations: 94.55 kB / 0.9112 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000974/2.215, allocations: 121.2 kB / 0.9113 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004159/2.216, allocations: 62.39 kB / 0.9114 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.006232/2.222, allocations: 2.27 MB / 0.9136 GB, free: 145.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008714/2.231, allocations: 1.146 MB / 0.9147 GB, free: 144.2 MB / 0.4948 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.001184/2.232, allocations: 166.6 kB / 0.9149 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01789/2.25, allocations: 7.742 MB / 0.9224 GB, free: 137.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/2.25, allocations: 0 / 0.9224 GB, free: 137.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007397/2.257, allocations: 3.018 MB / 0.9254 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004225/2.262, allocations: 391.6 kB / 0.9258 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03226/2.294, allocations: 10.58 MB / 0.9361 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01113/2.305, allocations: 3.896 MB / 0.9399 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.493e-06/2.305, allocations: 0 / 0.9399 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.371/2.676, allocations: 111.6 MB / 1.049 GB, free: 168.9 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches