Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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 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 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) 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006996/0.0006996, allocations: 98.92 kB / 17.35 MB, free: 6.367 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.0007764/0.0007766, allocations: 172.3 kB / 18.25 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1811/0.1811, allocations: 44.25 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002824, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09852, allocations: 61.93 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02047/0.119, allocations: 24.84 MB / 497.2 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.13, allocations: 6.333 MB / 0.4917 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001973/0.132, allocations: 103.8 kB / 0.4918 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007574/0.1328, allocations: 426.2 kB / 0.4922 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002796/0.1356, allocations: 1.65 MB / 0.4939 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009452/0.1365, allocations: 0.5148 MB / 0.4944 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004894/0.1414, allocations: 5.4 MB / 0.4996 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00286/0.1443, allocations: 2.271 MB / 0.5018 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.1457, allocations: 0.9373 MB / 0.5028 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.1474, allocations: 1.697 MB / 0.5044 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003244/0.1478, allocations: 124 kB / 0.5045 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1939/0.3416, allocations: 1.299 MB / 0.5058 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002037/0.3437, allocations: 1.523 MB / 0.5073 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00172/0.3454, allocations: 1.785 MB / 0.509 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00649/0.3519, allocations: 5.816 MB / 0.5147 GB, free: 13.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.352, allocations: 6.312 kB / 0.5147 GB, free: 13.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.352, allocations: 0 / 0.5147 GB, free: 13.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001208/0.3521, allocations: 0 / 0.5147 GB, free: 13.31 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.006576/0.3587, allocations: 3.404 MB / 0.518 GB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.3587, allocations: 10.16 kB / 0.5181 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001287/0.36, allocations: 0.687 MB / 0.5187 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01874/0.3788, allocations: 5.803 MB / 0.5244 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00587/0.3847, allocations: 2.798 MB / 0.5271 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.3849, allocations: 182 kB / 0.5273 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.3859, allocations: 313.7 kB / 0.5276 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01482/0.4008, allocations: 10.73 MB / 0.5381 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.405e-05/0.4009, allocations: 31.66 kB / 0.5381 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003442/0.4012, allocations: 112.7 kB / 0.5382 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003295/0.4045, allocations: 2.461 MB / 0.5406 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0173/0.4218, allocations: 10.18 MB / 0.5506 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05125/0.4731, allocations: 35.68 MB / 0.5854 GB, free: 7.422 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/0.4849, allocations: 5.612 MB / 0.5909 GB, free: 1.598 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003335/0.4882, allocations: 2.334 MB / 0.5932 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001689/0.4899, allocations: 1.873 MB / 0.595 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.312e-05/0.49, allocations: 59.03 kB / 0.595 GB, free: 13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 4.799e-06/0.49, allocations: 0 / 0.595 GB, free: 13 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03638/0.5264, allocations: 14.96 MB / 0.6097 GB, free: 13.95 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001304/0.5278, allocations: 1.517 MB / 0.6111 GB, free: 12.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005177/0.533, allocations: 2.815 MB / 0.6139 GB, free: 9.457 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005546/0.5335, allocations: 61.3 kB / 0.6139 GB, free: 9.395 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002129/0.5357, allocations: 2.675 MB / 0.6166 GB, free: 6.719 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00134/0.5371, allocations: 0.8492 MB / 0.6174 GB, free: 5.875 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.5383, allocations: 489.2 kB / 0.6179 GB, free: 5.395 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/0.5384, allocations: 301.1 kB / 0.6181 GB, free: 5.098 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004332/0.5427, allocations: 2.626 MB / 0.6207 GB, free: 2.465 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006291/0.549, allocations: 5.631 MB / 0.6262 GB, free: 11.41 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/0.5594, allocations: 8.937 MB / 0.6349 GB, free: 1.438 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-05/0.5595, allocations: 32 kB / 0.635 GB, free: 1.406 MB / 478.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.064/0.6235, allocations: 19.02 MB / 0.6535 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.6237, allocations: 48 kB / 0.6536 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04762/0.6713, allocations: 12.01 MB / 0.6653 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04943/0.7208, allocations: 10.28 MB / 0.6753 GB, free: 8.617 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004847/0.7257, allocations: 1.302 MB / 0.6766 GB, free: 7.352 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02787/0.7536, allocations: 16.05 MB / 0.6923 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004464/0.758, allocations: 446.1 kB / 0.6927 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009077/0.759, allocations: 316 kB / 0.693 GB, free: 6.297 MB / 0.5294 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.004234/0.7632, allocations: 2.026 MB / 0.695 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00054/0.7638, allocations: 268.4 kB / 0.6953 GB, free: 3.992 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2182/0.982, allocations: 5.115 MB / 0.7002 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008534/0.9906, allocations: 4.404 MB / 0.7045 GB, free: 191.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.9906, allocations: 2.156 kB / 0.7045 GB, free: 191.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/0.9906, allocations: 12.84 kB / 0.7046 GB, free: 191.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02093/1.012, allocations: 12.93 MB / 0.7172 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.223e-05/1.012, allocations: 7.531 kB / 0.7172 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003484/1.015, allocations: 453.2 kB / 0.7176 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004943/1.02, allocations: 0.9363 MB / 0.7185 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000408/1.021, allocations: 57.02 kB / 0.7186 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009213/1.03, allocations: 5.464 MB / 0.7239 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001085/1.031, allocations: 1.457 MB / 0.7254 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01661/1.048, allocations: 7.744 MB / 0.7329 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008861/1.048, allocations: 327.5 kB / 0.7332 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005916/1.049, allocations: 47.98 kB / 0.7333 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002147/1.051, allocations: 196.4 kB / 0.7335 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004737/1.052, allocations: 145.5 kB / 0.7336 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000231/1.052, allocations: 65.23 kB / 0.7337 GB, free: 177 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00321/1.055, allocations: 1.733 MB / 0.7354 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/1.055, allocations: 3.719 kB / 0.7354 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006144/1.061, allocations: 1.102 MB / 0.7364 GB, free: 174.2 MB / 0.5294 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.01057/1.072, allocations: 8.381 MB / 0.7446 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0144/1.086, allocations: 6.59 MB / 0.7511 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.626e-05/1.086, allocations: 0 / 0.7511 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005164/1.092, allocations: 2.529 MB / 0.7535 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005845/1.097, allocations: 362.3 kB / 0.7539 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1275/1.225, allocations: 64.44 MB / 0.8168 GB, free: 86 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002603/1.228, allocations: 3.164 MB / 0.8199 GB, free: 82.81 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003979/1.232, allocations: 2.052 MB / 0.8219 GB, free: 80.75 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001799/1.233, allocations: 1.667 MB / 0.8235 GB, free: 79.09 MB / 0.5294 GB Notification: Performance of SimCode: time 6.61e-07/1.233, allocations: 0 / 0.8235 GB, free: 79.09 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09214/1.326, allocations: 71.46 MB / 0.8933 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/1.326, allocations: 227 kB / 0.8935 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.135/4.461, allocations: 0 / 0.8935 GB, free: 7.625 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches