Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_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.001094/0.001094, allocations: 105.1 kB / 16.41 MB, free: 6.473 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.001114/0.001115, allocations: 192.1 kB / 17.34 MB, free: 5.754 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.392/1.392, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2115/0.2115, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 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.91 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.123, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01451/0.1376, allocations: 11.81 MB / 0.4989 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1478, allocations: 4.058 MB / 0.5029 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002504/0.1504, allocations: 67.81 kB / 0.503 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002986/0.1534, allocations: 1.167 MB / 0.5041 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004761/0.1583, allocations: 1.755 MB / 0.5058 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.1598, allocations: 0.5496 MB / 0.5064 GB, free: 8.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005918/0.1658, allocations: 3.969 MB / 0.5102 GB, free: 4.828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003626/0.1694, allocations: 1.791 MB / 0.512 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.1719, allocations: 1.171 MB / 0.5131 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002519/0.1745, allocations: 1.678 MB / 0.5148 GB, free: 152 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007812/0.1753, allocations: 216 kB / 0.515 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002919/0.1782, allocations: 1.299 MB / 0.5162 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002074/0.1803, allocations: 1.589 MB / 0.5178 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003293/0.1836, allocations: 1.863 MB / 0.5196 GB, free: 11.17 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008606/0.1922, allocations: 6.262 MB / 0.5257 GB, free: 4.883 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.1923, allocations: 0 / 0.5257 GB, free: 4.883 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1923, allocations: 0 / 0.5257 GB, free: 4.883 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002491/0.1926, allocations: 4 kB / 0.5257 GB, free: 4.879 MB / 414.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.01069/0.2033, allocations: 4.142 MB / 0.5298 GB, free: 0.668 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.45e-05/0.2033, allocations: 11.89 kB / 0.5298 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2367/0.4401, allocations: 0.6862 MB / 0.5305 GB, free: 37.42 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02182/0.462, allocations: 5.684 MB / 0.536 GB, free: 37.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008148/0.4702, allocations: 2.974 MB / 0.5389 GB, free: 36.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/0.4704, allocations: 181.2 kB / 0.5391 GB, free: 36.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001349/0.4718, allocations: 309.5 kB / 0.5394 GB, free: 36.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02156/0.4933, allocations: 10.72 MB / 0.5499 GB, free: 31.92 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.563e-05/0.4935, allocations: 22.81 kB / 0.5499 GB, free: 31.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003846/0.4939, allocations: 110.7 kB / 0.55 GB, free: 31.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003614/0.4975, allocations: 2.468 MB / 0.5524 GB, free: 30.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01615/0.5137, allocations: 10.15 MB / 0.5623 GB, free: 22.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04492/0.5586, allocations: 35.53 MB / 0.597 GB, free: 2.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.5706, allocations: 5.592 MB / 0.6025 GB, free: 12.69 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003403/0.574, allocations: 2.334 MB / 0.6047 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001918/0.576, allocations: 1.88 MB / 0.6066 GB, free: 8.137 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.097e-05/0.5761, allocations: 56.56 kB / 0.6066 GB, free: 8.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 6.933e-06/0.5761, allocations: 0 / 0.6066 GB, free: 8.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03858/0.6147, allocations: 15 MB / 0.6213 GB, free: 8.953 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001518/0.6162, allocations: 1.615 MB / 0.6229 GB, free: 7.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005288/0.6215, allocations: 2.823 MB / 0.6256 GB, free: 4.344 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005239/0.6221, allocations: 57.69 kB / 0.6257 GB, free: 4.281 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002242/0.6243, allocations: 2.678 MB / 0.6283 GB, free: 1.562 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001266/0.6256, allocations: 0.8557 MB / 0.6291 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003212/0.6289, allocations: 1.099 MB / 0.6302 GB, free: 15.59 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.629, allocations: 305.2 kB / 0.6305 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004433/0.6335, allocations: 2.63 MB / 0.6331 GB, free: 12.65 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006431/0.6399, allocations: 5.623 MB / 0.6385 GB, free: 5.555 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/0.6519, allocations: 8.938 MB / 0.6473 GB, free: 11.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001562/0.6521, allocations: 32 kB / 0.6473 GB, free: 11.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06921/0.7213, allocations: 19.02 MB / 0.6659 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001565/0.7215, allocations: 52 kB / 0.6659 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0459/0.7674, allocations: 12.01 MB / 0.6777 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04805/0.8155, allocations: 10.28 MB / 0.6877 GB, free: 1.656 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004873/0.8205, allocations: 1.302 MB / 0.689 GB, free: 360 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03062/0.8511, allocations: 18.21 MB / 0.7068 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004399/0.8556, allocations: 431.5 kB / 0.7072 GB, free: 13.44 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/0.8567, allocations: 320 kB / 0.7075 GB, free: 13.13 MB / 0.545 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.003949/0.8606, allocations: 2.035 MB / 0.7095 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007286/0.8614, allocations: 272.4 kB / 0.7097 GB, free: 10.81 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009634/0.871, allocations: 5.107 MB / 0.7147 GB, free: 5.668 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00807/0.8791, allocations: 4.401 MB / 0.719 GB, free: 1.254 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.97e-05/0.8792, allocations: 4 kB / 0.719 GB, free: 1.25 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.518e-05/0.8792, allocations: 11.91 kB / 0.719 GB, free: 1.238 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02553/0.9047, allocations: 12.92 MB / 0.7316 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.32e-05/0.9048, allocations: 8 kB / 0.7317 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/0.907, allocations: 463.1 kB / 0.7321 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002978/0.91, allocations: 0.9429 MB / 0.733 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003654/0.9104, allocations: 47.97 kB / 0.7331 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007571/0.918, allocations: 5.829 MB / 0.7388 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001146/0.9192, allocations: 1.546 MB / 0.7403 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01266/0.9319, allocations: 7.734 MB / 0.7478 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.933, allocations: 329.7 kB / 0.7481 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008252/0.9338, allocations: 47.97 kB / 0.7482 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/0.9357, allocations: 195.6 kB / 0.7484 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004788/0.9362, allocations: 144.9 kB / 0.7485 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/0.9365, allocations: 67.97 kB / 0.7486 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003272/0.9398, allocations: 1.741 MB / 0.7503 GB, free: 456 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9398, allocations: 0 / 0.7503 GB, free: 456 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.2451/1.185, allocations: 1.101 MB / 0.7513 GB, free: 194.3 MB / 0.5762 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.01316/1.198, allocations: 8.382 MB / 0.7595 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01271/1.211, allocations: 6.636 MB / 0.766 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/1.211, allocations: 1.438 kB / 0.766 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004271/1.215, allocations: 2.526 MB / 0.7685 GB, free: 189.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/1.218, allocations: 378.6 kB / 0.7688 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1264/1.344, allocations: 59.5 MB / 0.8269 GB, free: 140.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003101/1.347, allocations: 3.174 MB / 0.83 GB, free: 137.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003851/1.351, allocations: 2.059 MB / 0.8321 GB, free: 135.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002086/1.353, allocations: 1.669 MB / 0.8337 GB, free: 133.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.263e-06/1.353, allocations: 4 kB / 0.8337 GB, free: 133.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.104/1.457, allocations: 72.22 MB / 0.9042 GB, free: 61.11 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.54/21.99, allocations: 19.81 kB / 0.9042 GB, free: 61.09 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches