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.001658/0.001658, allocations: 107 kB / 17.33 MB, free: 6.023 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.001703/0.001703, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.467/1.467, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2158/0.2158, allocations: 44.18 MB / 336.3 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 60.91 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1478, allocations: 60.82 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02511/0.173, allocations: 25.71 MB / 494.5 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01548/0.1885, allocations: 6.294 MB / 0.4891 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006216/0.1948, allocations: 103.8 kB / 0.4892 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003171/0.198, allocations: 1.118 MB / 0.4903 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.2036, allocations: 1.651 MB / 0.4919 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.2055, allocations: 0.5187 MB / 0.4924 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006107/0.2117, allocations: 3.942 MB / 0.4962 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00258/0.2143, allocations: 1.877 MB / 0.4981 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001898/0.2162, allocations: 1.164 MB / 0.4992 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002446/0.2186, allocations: 1.85 MB / 0.501 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004699/0.2191, allocations: 220 kB / 0.5012 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002514/0.2216, allocations: 1.334 MB / 0.5025 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2589/0.4805, allocations: 1.609 MB / 0.5041 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00226/0.4828, allocations: 1.876 MB / 0.5059 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009313/0.4921, allocations: 6.026 MB / 0.5118 GB, free: 13.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.4922, allocations: 1.25 kB / 0.5118 GB, free: 13.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4922, allocations: 0 / 0.5118 GB, free: 13.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000219/0.4924, allocations: 0 / 0.5118 GB, free: 13.57 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.008906/0.5014, allocations: 4.141 MB / 0.5159 GB, free: 11.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.5014, allocations: 8.844 kB / 0.5159 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009507/0.5024, allocations: 0.6836 MB / 0.5165 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01889/0.5213, allocations: 5.7 MB / 0.5221 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00786/0.5292, allocations: 2.806 MB / 0.5248 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.5294, allocations: 179 kB / 0.525 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/0.5305, allocations: 318.3 kB / 0.5253 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.5475, allocations: 10.71 MB / 0.5358 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.36e-05/0.5477, allocations: 26.59 kB / 0.5358 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003809/0.5481, allocations: 111.4 kB / 0.5359 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003545/0.5516, allocations: 2.459 MB / 0.5383 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01753/0.5692, allocations: 10.17 MB / 0.5482 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05375/0.6229, allocations: 35.68 MB / 0.5831 GB, free: 7.465 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01244/0.6354, allocations: 5.589 MB / 0.5885 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003482/0.6389, allocations: 2.336 MB / 0.5908 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00181/0.6408, allocations: 1.881 MB / 0.5927 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.365e-05/0.6408, allocations: 60.44 kB / 0.5927 GB, free: 13.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 7.534e-06/0.6409, allocations: 4 kB / 0.5927 GB, free: 13.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03759/0.6785, allocations: 14.96 MB / 0.6073 GB, free: 14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001421/0.6799, allocations: 1.609 MB / 0.6089 GB, free: 12.24 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005958/0.6859, allocations: 2.815 MB / 0.6116 GB, free: 9.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007384/0.6867, allocations: 59.81 kB / 0.6117 GB, free: 9.348 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002243/0.6889, allocations: 2.672 MB / 0.6143 GB, free: 6.672 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001606/0.6905, allocations: 0.8507 MB / 0.6151 GB, free: 5.828 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003284/0.6938, allocations: 1.092 MB / 0.6162 GB, free: 4.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.694, allocations: 301.1 kB / 0.6165 GB, free: 4.434 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004664/0.6987, allocations: 2.635 MB / 0.6191 GB, free: 1.793 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006609/0.7053, allocations: 5.627 MB / 0.6246 GB, free: 10.75 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/0.7166, allocations: 8.941 MB / 0.6333 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/0.7167, allocations: 39.94 kB / 0.6333 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06263/0.7794, allocations: 19.02 MB / 0.6519 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/0.7795, allocations: 54.5 kB / 0.652 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04369/0.8232, allocations: 12.01 MB / 0.6637 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04648/0.8698, allocations: 10.29 MB / 0.6737 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005024/0.8748, allocations: 1.302 MB / 0.675 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03139/0.9062, allocations: 18.21 MB / 0.6928 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004959/0.9112, allocations: 450.2 kB / 0.6932 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001396/0.9127, allocations: 320 kB / 0.6935 GB, free: 3.559 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.005445/0.9181, allocations: 2.022 MB / 0.6955 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007247/0.9189, allocations: 268.4 kB / 0.6958 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2811/1.2, allocations: 5.104 MB / 0.7007 GB, free: 193.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00807/1.208, allocations: 4.405 MB / 0.705 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/1.208, allocations: 5.969 kB / 0.7051 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/1.208, allocations: 14.44 kB / 0.7051 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01961/1.228, allocations: 12.93 MB / 0.7177 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/1.228, allocations: 11.78 kB / 0.7177 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/1.23, allocations: 457.1 kB / 0.7181 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002655/1.232, allocations: 0.943 MB / 0.7191 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/1.233, allocations: 54.67 kB / 0.7191 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005331/1.238, allocations: 5.825 MB / 0.7248 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007321/1.239, allocations: 1.559 MB / 0.7263 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009232/1.248, allocations: 7.731 MB / 0.7339 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007819/1.249, allocations: 329 kB / 0.7342 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003769/1.249, allocations: 48.58 kB / 0.7342 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/1.25, allocations: 193.3 kB / 0.7344 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003908/1.251, allocations: 141 kB / 0.7345 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.251, allocations: 69.14 kB / 0.7346 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002239/1.253, allocations: 1.725 MB / 0.7363 GB, free: 172.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.253, allocations: 0 / 0.7363 GB, free: 172.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00427/1.258, allocations: 1.109 MB / 0.7374 GB, free: 171.6 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.0093/1.267, allocations: 8.387 MB / 0.7456 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01335/1.28, allocations: 9.653 MB / 0.755 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.28, allocations: 4 kB / 0.755 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002905/1.283, allocations: 2.533 MB / 0.7575 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002236/1.285, allocations: 380.5 kB / 0.7578 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1292/1.415, allocations: 64.36 MB / 0.8207 GB, free: 80.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002922/1.418, allocations: 3.16 MB / 0.8238 GB, free: 77.33 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004045/1.422, allocations: 2.06 MB / 0.8258 GB, free: 75.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001962/1.424, allocations: 1.663 MB / 0.8274 GB, free: 73.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.142e-06/1.424, allocations: 1.422 kB / 0.8274 GB, free: 73.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3494/1.773, allocations: 73.98 MB / 0.8997 GB, free: 186.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001457/1.773, allocations: 222.8 kB / 0.8999 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.622/5.395, allocations: 3.938 kB / 0.8999 GB, free: 186.7 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