Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2066/0.2066, allocations: 46.09 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 78.59 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1131, allocations: 62.44 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01185/0.125, allocations: 11.75 MB / 491.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007322/0.1324, allocations: 4.065 MB / 496 MB, free: 5.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.134, allocations: 59.88 kB / 496 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002294/0.1363, allocations: 1.179 MB / 497.2 MB, free: 4.023 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004081/0.1405, allocations: 1.716 MB / 498.9 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.1418, allocations: 0.5613 MB / 499.5 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004731/0.1465, allocations: 4.024 MB / 0.4917 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002234/0.1488, allocations: 1.784 MB / 0.4934 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001609/0.1504, allocations: 1.148 MB / 0.4946 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/0.1528, allocations: 1.666 MB / 0.4962 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000811/0.1536, allocations: 216 kB / 0.4964 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002397/0.1561, allocations: 1.291 MB / 0.4976 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001824/0.1579, allocations: 1.57 MB / 0.4992 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002357/0.1603, allocations: 1.836 MB / 0.501 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.213/0.3733, allocations: 5.905 MB / 0.5067 GB, free: 18.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3733, allocations: 1.469 kB / 0.5067 GB, free: 18.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3733, allocations: 0 / 0.5067 GB, free: 18.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001542/0.3735, allocations: 0.5156 kB / 0.5067 GB, free: 18.82 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.00708/0.3806, allocations: 4.096 MB / 0.5107 GB, free: 17.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.3806, allocations: 9.125 kB / 0.5107 GB, free: 17.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008364/0.3815, allocations: 0.6861 MB / 0.5114 GB, free: 17.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01993/0.4014, allocations: 6.158 MB / 0.5174 GB, free: 16.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0062/0.4077, allocations: 2.597 MB / 0.52 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.4079, allocations: 181.7 kB / 0.5201 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.4091, allocations: 312 kB / 0.5204 GB, free: 16.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/0.4266, allocations: 10.72 MB / 0.5309 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.984e-05/0.4268, allocations: 22.62 kB / 0.5309 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004042/0.4272, allocations: 114.1 kB / 0.531 GB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003246/0.4304, allocations: 2.463 MB / 0.5334 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01696/0.4474, allocations: 10.17 MB / 0.5434 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04468/0.4921, allocations: 35.69 MB / 0.5782 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.5036, allocations: 5.586 MB / 0.5837 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003113/0.5068, allocations: 2.334 MB / 0.586 GB, free: 7.082 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001524/0.5083, allocations: 1.879 MB / 0.5878 GB, free: 4.879 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.5084, allocations: 56.5 kB / 0.5879 GB, free: 4.816 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 4.96e-06/0.5084, allocations: 4 kB / 0.5879 GB, free: 4.812 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.03475/0.5432, allocations: 14.95 MB / 0.6025 GB, free: 5.789 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001193/0.5444, allocations: 1.616 MB / 0.604 GB, free: 4.023 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004444/0.5488, allocations: 2.806 MB / 0.6068 GB, free: 1.207 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006602/0.5495, allocations: 60.12 kB / 0.6068 GB, free: 1.145 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001914/0.5515, allocations: 2.672 MB / 0.6094 GB, free: 14.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001206/0.5527, allocations: 0.8533 MB / 0.6103 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002528/0.5552, allocations: 1.098 MB / 0.6113 GB, free: 12.53 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.704e-05/0.5553, allocations: 301.1 kB / 0.6116 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003979/0.5593, allocations: 2.63 MB / 0.6142 GB, free: 9.598 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007039/0.5664, allocations: 5.632 MB / 0.6197 GB, free: 2.547 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/0.5777, allocations: 8.937 MB / 0.6284 GB, free: 8.574 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.33e-05/0.5778, allocations: 39.94 kB / 0.6285 GB, free: 8.535 MB / 478.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06514/0.6429, allocations: 17.12 MB / 0.6452 GB, free: 7.738 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-05/0.6431, allocations: 48 kB / 0.6452 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04609/0.6892, allocations: 10.64 MB / 0.6556 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04775/0.737, allocations: 8.643 MB / 0.6641 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004456/0.7414, allocations: 1.302 MB / 0.6653 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02928/0.7708, allocations: 17.8 MB / 0.6827 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004242/0.775, allocations: 419.6 kB / 0.6831 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008735/0.7759, allocations: 326.6 kB / 0.6834 GB, free: 256 kB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.003338/0.7793, allocations: 2.015 MB / 0.6854 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005151/0.7798, allocations: 270.6 kB / 0.6857 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008805/0.7886, allocations: 5.117 MB / 0.6907 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007605/0.7962, allocations: 4.4 MB / 0.6949 GB, free: 4.391 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/0.7963, allocations: 7.938 kB / 0.695 GB, free: 4.383 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.597e-05/0.7963, allocations: 11.91 kB / 0.695 GB, free: 4.371 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02305/0.8194, allocations: 12.95 MB / 0.7076 GB, free: 7.277 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/0.8194, allocations: 8 kB / 0.7076 GB, free: 7.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002097/0.8215, allocations: 459.2 kB / 0.7081 GB, free: 6.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003027/0.8246, allocations: 0.9428 MB / 0.709 GB, free: 5.867 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002841/0.8249, allocations: 57.41 kB / 0.709 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1971/1.022, allocations: 5.831 MB / 0.7147 GB, free: 197.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009513/1.023, allocations: 1.548 MB / 0.7162 GB, free: 196.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/1.034, allocations: 7.73 MB / 0.7238 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006549/1.035, allocations: 326.7 kB / 0.7241 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004054/1.036, allocations: 51.39 kB / 0.7242 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.037, allocations: 191.9 kB / 0.7243 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000374/1.037, allocations: 144.9 kB / 0.7245 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000169/1.038, allocations: 68.72 kB / 0.7245 GB, free: 194.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002433/1.04, allocations: 1.728 MB / 0.7262 GB, free: 193.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/1.04, allocations: 0 / 0.7262 GB, free: 193.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004508/1.045, allocations: 1.085 MB / 0.7273 GB, free: 193.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01061/1.055, allocations: 8.384 MB / 0.7355 GB, free: 190.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01342/1.069, allocations: 9.583 MB / 0.7448 GB, free: 187 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.069, allocations: 0 / 0.7448 GB, free: 187 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003222/1.072, allocations: 2.535 MB / 0.7473 GB, free: 184.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/1.074, allocations: 377.3 kB / 0.7477 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1249/1.199, allocations: 59.66 MB / 0.8059 GB, free: 120.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002425/1.201, allocations: 3.16 MB / 0.809 GB, free: 117.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004052/1.206, allocations: 2.056 MB / 0.811 GB, free: 115.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002104/1.208, allocations: 1.659 MB / 0.8126 GB, free: 113.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.423e-06/1.208, allocations: 0 / 0.8126 GB, free: 113.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1821/1.39, allocations: 73.7 MB / 0.8846 GB, free: 40.22 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.85/17.24, allocations: 0 / 0.8846 GB, free: 40.22 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches