Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") [: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 trunk/package.mo): time 0.001021/0.001021, allocations: 194.9 kB / 8.539 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 225.5 MB / 234.4 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008051/0.0008051, allocations: 87.34 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1776/0.1776, allocations: 45.14 MB / 383.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.56e-06/5.671e-06, allocations: 0 / 452.6 MB, free: 76.16 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1164, allocations: 63.25 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3824/0.4988, allocations: 109.2 MB / 0.6104 GB, free: 10.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4991, allocations: 77.39 kB / 0.6105 GB, free: 10.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2794/0.7785, allocations: 105.2 MB / 0.7132 GB, free: 9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005031/0.7791, allocations: 108 kB / 0.7133 GB, free: 8.895 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02041/0.7995, allocations: 5.221 MB / 0.7184 GB, free: 3.605 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.7996, allocations: 8.031 kB / 0.7184 GB, free: 3.598 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02789/0.8275, allocations: 6.521 MB / 0.7248 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/0.8466, allocations: 6.465 MB / 0.7311 GB, free: 6.535 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003548/0.847, allocations: 156 kB / 0.7313 GB, free: 6.383 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0025/0.8495, allocations: 299.8 kB / 0.7315 GB, free: 6.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01473/0.8643, allocations: 7.274 MB / 0.7386 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02665/0.891, allocations: 11.03 MB / 0.7494 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007057/0.8918, allocations: 75.25 kB / 0.7495 GB, free: 2.578 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002677/0.8945, allocations: 35.94 kB / 0.7495 GB, free: 2.543 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001932/0.8964, allocations: 1.222 MB / 0.7507 GB, free: 1.312 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3252/1.222, allocations: 55 MB / 0.8044 GB, free: 60.44 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00494/1.227, allocations: 4.283 MB / 0.8086 GB, free: 59.79 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003357/1.23, allocations: 2.951 MB / 0.8115 GB, free: 59.75 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0153/1.245, allocations: 9.59 MB / 0.8209 GB, free: 57.41 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/1.245, allocations: 55.19 kB / 0.8209 GB, free: 57.37 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=206): time 6.142e-06/1.246, allocations: 0 / 0.8209 GB, free: 57.37 MB / 0.5261 GB Notification: Performance of matching and sorting (n=262): time 0.0665/1.312, allocations: 26.61 MB / 0.8469 GB, free: 49.78 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.877e-05/1.312, allocations: 209.2 kB / 0.8471 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004966/1.317, allocations: 3.635 MB / 0.8506 GB, free: 48.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004821/1.318, allocations: 29.7 kB / 0.8507 GB, free: 48.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00146/1.319, allocations: 3.262 MB / 0.8539 GB, free: 45.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008425/1.32, allocations: 0.9336 MB / 0.8548 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/1.32, allocations: 0 / 0.8548 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002759/1.321, allocations: 0.6055 MB / 0.8554 GB, free: 44.75 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003232/1.324, allocations: 2.894 MB / 0.8582 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004465/1.328, allocations: 6.817 MB / 0.8648 GB, free: 37.34 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005091/1.333, allocations: 4.426 MB / 0.8692 GB, free: 35.79 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.681e-05/1.333, allocations: 37.38 kB / 0.8692 GB, free: 35.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=900) (initialization): time 0.02589/1.359, allocations: 11.96 MB / 0.8809 GB, free: 32.06 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/1.359, allocations: 8.719 kB / 0.8809 GB, free: 32.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/1.36, allocations: 140.9 kB / 0.881 GB, free: 32.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/1.372, allocations: 3.84 MB / 0.8848 GB, free: 31.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005766/1.377, allocations: 1.443 MB / 0.8862 GB, free: 31.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0317/1.409, allocations: 23.11 MB / 0.9087 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006633/1.416, allocations: 220.4 kB / 0.9089 GB, free: 16.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00173/1.418, allocations: 414.7 kB / 0.9093 GB, free: 15.79 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (784): * Single equations (assignments): 778 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.001815/1.419, allocations: 460.8 kB / 0.9098 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009317/1.42, allocations: 414.5 kB / 0.9102 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/1.435, allocations: 7.595 MB / 0.9176 GB, free: 8.941 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-05/1.435, allocations: 28 kB / 0.9176 GB, free: 8.914 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-05/1.435, allocations: 16 kB / 0.9176 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-05/1.435, allocations: 10.12 kB / 0.9176 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03579/1.471, allocations: 15.76 MB / 0.933 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.212e-05/1.471, allocations: 4 kB / 0.933 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/1.472, allocations: 279 kB / 0.9333 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01146/1.484, allocations: 3.551 MB / 0.9368 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005952/1.485, allocations: 9.078 kB / 0.9368 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03054/1.515, allocations: 21.86 MB / 0.9581 GB, free: 4.992 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/1.515, allocations: 7.938 kB / 0.9581 GB, free: 4.984 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2852/1.8, allocations: 12.12 MB / 0.97 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/1.802, allocations: 442 kB / 0.9704 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007306/1.802, allocations: 9.656 kB / 0.9704 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001966/1.804, allocations: 79.44 kB / 0.9705 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003418/1.805, allocations: 131.8 kB / 0.9706 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000224/1.805, allocations: 71.77 kB / 0.9707 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.003727/1.809, allocations: 2.478 MB / 0.9731 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005723/1.814, allocations: 1.2 MB / 0.9743 GB, free: 113.2 MB / 0.5573 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 (158): * Single equations (assignments): 152 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.000504/1.815, allocations: 159.9 kB / 0.9744 GB, free: 113.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01099/1.826, allocations: 7.526 MB / 0.9818 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/1.826, allocations: 3 kB / 0.9818 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004553/1.83, allocations: 3.109 MB / 0.9848 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002641/1.833, allocations: 445 kB / 0.9852 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02048/1.854, allocations: 10.38 MB / 0.9954 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004932/1.859, allocations: 4.274 MB / 0.9995 GB, free: 109.7 MB / 0.5573 GB Notification: Performance of SimCode: time 9.31e-07/1.859, allocations: 0 / 0.9995 GB, free: 109.7 MB / 0.5573 GB Notification: Performance of Templates: time 0.1143/1.973, allocations: 63.4 MB / 1.061 GB, free: 101.1 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches