Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 105.7 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 190.9 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2174/0.2174, allocations: 43.52 MB / 313.9 MB, free: 0.5195 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 67.38 kB / 382.7 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1203, allocations: 57.8 MB / 440.5 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01438/0.1347, allocations: 15.09 MB / 455.6 MB, free: 7.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.1463, allocations: 4.827 MB / 460.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002909/0.1492, allocations: 91.75 kB / 460.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005998/0.1552, allocations: 3.169 MB / 463.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007623/0.163, allocations: 2.541 MB / 466.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002461/0.1654, allocations: 0.9983 MB / 467.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009924/0.1754, allocations: 6.639 MB / 473.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007085/0.1825, allocations: 4.393 MB / 478.3 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004268/0.1868, allocations: 2.235 MB / 480.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005132/0.1919, allocations: 3.267 MB / 483.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002033/0.194, allocations: 488 kB / 484.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004192/0.1982, allocations: 1.49 MB / 485.7 MB, free: 9.457 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00408/0.2023, allocations: 2.868 MB / 488.6 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007595/0.2099, allocations: 3.262 MB / 491.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01581/0.2257, allocations: 10.08 MB / 0.4902 GB, free: 9.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.577e-06/0.2258, allocations: 0 / 0.4902 GB, free: 9.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2258, allocations: 0 / 0.4902 GB, free: 9.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004762/0.2263, allocations: 0 / 0.4902 GB, free: 9.191 MB / 382.1 MB 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.02265/0.2489, allocations: 7.33 MB / 0.4973 GB, free: 1.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.249, allocations: 15.89 kB / 0.4973 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01696/0.266, allocations: 3.927 MB / 0.5012 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.2768, allocations: 4.228 MB / 0.5053 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000389/0.2772, allocations: 320.4 kB / 0.5056 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002381/0.2796, allocations: 439.5 kB / 0.506 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02915/0.3088, allocations: 15.73 MB / 0.5214 GB, free: 8.121 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001847/0.309, allocations: 51.53 kB / 0.5215 GB, free: 8.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006536/0.3097, allocations: 203.8 kB / 0.5216 GB, free: 7.871 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005071/0.3147, allocations: 3.227 MB / 0.5248 GB, free: 4.641 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2978/0.6125, allocations: 14.15 MB / 0.5386 GB, free: 78.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07116/0.6837, allocations: 57.78 MB / 0.595 GB, free: 31.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01255/0.6963, allocations: 6.612 MB / 0.6015 GB, free: 24.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004981/0.7014, allocations: 3.755 MB / 0.6052 GB, free: 20.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02229/0.7237, allocations: 14.79 MB / 0.6196 GB, free: 5.449 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.254e-05/0.7238, allocations: 66.91 kB / 0.6197 GB, free: 5.375 MB / 414.1 MB Notification: Performance of pre-optimization done (n=292): time 7.394e-06/0.7238, allocations: 3.938 kB / 0.6197 GB, free: 5.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=342): time 0.1666/0.8904, allocations: 42.52 MB / 0.6612 GB, free: 10.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.8906, allocations: 221.9 kB / 0.6614 GB, free: 10.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01223/0.9029, allocations: 5.494 MB / 0.6668 GB, free: 5.062 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001172/0.9041, allocations: 69.7 kB / 0.6668 GB, free: 4.988 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004233/0.9083, allocations: 4.346 MB / 0.6711 GB, free: 0.582 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002745/0.9111, allocations: 1.269 MB / 0.6723 GB, free: 15.29 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003915/0.915, allocations: 1.848 MB / 0.6741 GB, free: 13.43 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.9152, allocations: 309.1 kB / 0.6744 GB, free: 13.12 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007925/0.9231, allocations: 4.839 MB / 0.6792 GB, free: 8.277 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01367/0.9368, allocations: 9.824 MB / 0.6887 GB, free: 12.01 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02434/0.9612, allocations: 15.62 MB / 0.704 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002208/0.9615, allocations: 48 kB / 0.704 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.05345/1.015, allocations: 19.62 MB / 0.7232 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001857/1.015, allocations: 79.98 kB / 0.7233 GB, free: 6.121 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003127/1.016, allocations: 176 kB / 0.7235 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3125/1.328, allocations: 5.941 MB / 0.7293 GB, free: 173.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009047/1.337, allocations: 2.123 MB / 0.7313 GB, free: 173.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03552/1.373, allocations: 26.17 MB / 0.7569 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009179/1.382, allocations: 0.5642 MB / 0.7574 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002414/1.384, allocations: 0.5083 MB / 0.7579 GB, free: 163.7 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006938/1.391, allocations: 3.098 MB / 0.761 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.393, allocations: 0.4915 MB / 0.7614 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03116/1.424, allocations: 13.01 MB / 0.7741 GB, free: 157.4 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001041/1.424, allocations: 58.06 kB / 0.7742 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.439e-05/1.424, allocations: 12 kB / 0.7742 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.548e-05/1.424, allocations: 11.95 kB / 0.7742 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04934/1.473, allocations: 24.7 MB / 0.7983 GB, free: 132.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.254e-05/1.473, allocations: 4 kB / 0.7983 GB, free: 132.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003539/1.477, allocations: 0.5811 MB / 0.7989 GB, free: 131.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01976/1.497, allocations: 4.969 MB / 0.8038 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001093/1.498, allocations: 59.67 kB / 0.8038 GB, free: 126.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02302/1.521, allocations: 21.34 MB / 0.8247 GB, free: 105.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.521, allocations: 10.69 kB / 0.8247 GB, free: 105.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0333/1.554, allocations: 17.58 MB / 0.8418 GB, free: 87.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003916/1.558, allocations: 1.256 MB / 0.8431 GB, free: 86.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/1.56, allocations: 63.58 kB / 0.8431 GB, free: 86.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003603/1.563, allocations: 259.6 kB / 0.8434 GB, free: 86.26 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008314/1.564, allocations: 193.6 kB / 0.8436 GB, free: 86.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002647/1.564, allocations: 87.98 kB / 0.8436 GB, free: 85.99 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00534/1.57, allocations: 3.414 MB / 0.847 GB, free: 82.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/1.57, allocations: 3.938 kB / 0.847 GB, free: 82.59 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00948/1.579, allocations: 1.775 MB / 0.8487 GB, free: 80.83 MB / 0.5137 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007962/1.58, allocations: 197.4 kB / 0.8489 GB, free: 80.64 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02381/1.604, allocations: 15.93 MB / 0.8645 GB, free: 64.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/1.604, allocations: 4.062 kB / 0.8645 GB, free: 64.76 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005222/1.609, allocations: 4.129 MB / 0.8685 GB, free: 60.61 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003883/1.613, allocations: 0.6205 MB / 0.8691 GB, free: 60.01 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/1.637, allocations: 16.28 MB / 0.885 GB, free: 43.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004404/1.641, allocations: 4.625 MB / 0.8895 GB, free: 39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006972/1.648, allocations: 2.979 MB / 0.8924 GB, free: 36.01 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/1.649, allocations: 355.4 kB / 0.8928 GB, free: 35.67 MB / 0.5137 GB Notification: Performance of SimCode: time 8.42e-07/1.649, allocations: 0 / 0.8928 GB, free: 35.67 MB / 0.5137 GB Notification: Performance of Templates: time 0.4051/2.054, allocations: 81.45 MB / 0.9723 GB, free: 137.3 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches