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.001765/0.001765, allocations: 100 kB / 17.63 MB, free: 5.52 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.001997/0.001997, allocations: 192.1 kB / 18.56 MB, free: 4.598 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.33/1.33, allocations: 222.9 MB / 242.3 MB, free: 15.27 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.2162/0.2162, allocations: 44.17 MB / 336.6 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 60.75 kB / 408.5 MB, free: 27.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1143, allocations: 60.83 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01295/0.1273, allocations: 11.79 MB / 481.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007516/0.1348, allocations: 4.046 MB / 485.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.1361, allocations: 63.81 kB / 485.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002184/0.1382, allocations: 1.187 MB / 486.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003386/0.1417, allocations: 1.751 MB / 488.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.1429, allocations: 0.5574 MB / 488.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004044/0.1469, allocations: 3.941 MB / 492.7 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001857/0.1488, allocations: 1.799 MB / 494.5 MB, free: 5.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001463/0.1503, allocations: 1.156 MB / 495.7 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002079/0.1524, allocations: 1.678 MB / 497.3 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005728/0.153, allocations: 216 kB / 497.5 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002516/0.1555, allocations: 1.314 MB / 498.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001383/0.1569, allocations: 1.578 MB / 0.4887 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001547/0.1584, allocations: 1.863 MB / 0.4905 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007382/0.1658, allocations: 5.973 MB / 0.4964 GB, free: 7.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.1659, allocations: 0 / 0.4964 GB, free: 7.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1659, allocations: 0 / 0.4964 GB, free: 7.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001989/0.1661, allocations: 0 / 0.4964 GB, free: 7.223 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.00826/0.1744, allocations: 4.142 MB / 0.5004 GB, free: 3.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1745, allocations: 12.03 kB / 0.5004 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007983/0.1753, allocations: 0.6876 MB / 0.5011 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2332/0.4085, allocations: 5.688 MB / 0.5066 GB, free: 45.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005803/0.4143, allocations: 2.794 MB / 0.5094 GB, free: 45.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.4145, allocations: 182.3 kB / 0.5095 GB, free: 45.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001301/0.4158, allocations: 310.6 kB / 0.5098 GB, free: 45.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.4307, allocations: 10.73 MB / 0.5203 GB, free: 40.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.421e-05/0.4308, allocations: 23.62 kB / 0.5203 GB, free: 40.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003256/0.4312, allocations: 118.1 kB / 0.5205 GB, free: 40.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003053/0.4342, allocations: 2.455 MB / 0.5228 GB, free: 39.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0158/0.45, allocations: 10.16 MB / 0.5328 GB, free: 29.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04171/0.4918, allocations: 35.7 MB / 0.5676 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/0.5033, allocations: 5.597 MB / 0.5731 GB, free: 3.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003101/0.5064, allocations: 2.335 MB / 0.5754 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001697/0.5081, allocations: 1.88 MB / 0.5772 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.5082, allocations: 52.56 kB / 0.5773 GB, free: 14.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 5.25e-06/0.5082, allocations: 0 / 0.5773 GB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03642/0.5446, allocations: 14.97 MB / 0.5919 GB, free: 15.72 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001404/0.5461, allocations: 1.609 MB / 0.5935 GB, free: 13.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004199/0.5503, allocations: 2.811 MB / 0.5962 GB, free: 11.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004245/0.5507, allocations: 53.7 kB / 0.5963 GB, free: 11.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001786/0.5525, allocations: 2.685 MB / 0.5989 GB, free: 8.348 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001036/0.5536, allocations: 0.8481 MB / 0.5997 GB, free: 7.488 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001946/0.5555, allocations: 1.095 MB / 0.6008 GB, free: 6.383 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.558e-05/0.5556, allocations: 305.1 kB / 0.6011 GB, free: 6.082 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003885/0.5595, allocations: 2.626 MB / 0.6036 GB, free: 3.449 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006791/0.5663, allocations: 5.635 MB / 0.6091 GB, free: 12.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01116/0.5775, allocations: 8.937 MB / 0.6179 GB, free: 1.934 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.599e-05/0.5776, allocations: 35.94 kB / 0.6179 GB, free: 1.898 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06807/0.6457, allocations: 19.02 MB / 0.6365 GB, free: 14.83 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.6459, allocations: 48 kB / 0.6365 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04806/0.694, allocations: 12.01 MB / 0.6482 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05098/0.745, allocations: 10.28 MB / 0.6583 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004921/0.7499, allocations: 1.302 MB / 0.6596 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03184/0.7818, allocations: 18.22 MB / 0.6774 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004312/0.7862, allocations: 431.5 kB / 0.6778 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009484/0.7871, allocations: 324 kB / 0.6781 GB, free: 3.898 MB / 0.4981 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.003772/0.7909, allocations: 2.02 MB / 0.68 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00065/0.7916, allocations: 272.4 kB / 0.6803 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008978/0.8006, allocations: 5.114 MB / 0.6853 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007982/0.8086, allocations: 4.401 MB / 0.6896 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.8086, allocations: 4 kB / 0.6896 GB, free: 8.027 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.217e-05/0.8087, allocations: 7.969 kB / 0.6896 GB, free: 8.02 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2407/1.049, allocations: 12.95 MB / 0.7023 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/1.049, allocations: 8.109 kB / 0.7023 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/1.052, allocations: 456.8 kB / 0.7027 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003004/1.055, allocations: 0.9467 MB / 0.7036 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000233/1.055, allocations: 54.58 kB / 0.7037 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006791/1.062, allocations: 5.824 MB / 0.7094 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009065/1.063, allocations: 1.552 MB / 0.7109 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/1.073, allocations: 7.729 MB / 0.7184 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005528/1.073, allocations: 328.3 kB / 0.7187 GB, free: 164 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003538/1.074, allocations: 47.42 kB / 0.7188 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/1.075, allocations: 193.1 kB / 0.719 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003804/1.076, allocations: 146.6 kB / 0.7191 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/1.076, allocations: 66.81 kB / 0.7192 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001924/1.078, allocations: 1.726 MB / 0.7209 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/1.078, allocations: 3.938 kB / 0.7209 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003908/1.082, allocations: 1.109 MB / 0.7219 GB, free: 163.2 MB / 0.5137 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.01033/1.092, allocations: 8.383 MB / 0.7301 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01349/1.105, allocations: 9.646 MB / 0.7396 GB, free: 152.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/1.106, allocations: 6.344 kB / 0.7396 GB, free: 152.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003184/1.109, allocations: 2.529 MB / 0.742 GB, free: 149.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/1.111, allocations: 381.5 kB / 0.7424 GB, free: 149.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1288/1.24, allocations: 62.49 MB / 0.8034 GB, free: 81.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003112/1.243, allocations: 3.16 MB / 0.8065 GB, free: 78.11 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003997/1.247, allocations: 2.056 MB / 0.8085 GB, free: 76.05 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001939/1.249, allocations: 1.667 MB / 0.8101 GB, free: 74.38 MB / 0.5137 GB Notification: Performance of SimCode: time 1.522e-06/1.249, allocations: 0 / 0.8101 GB, free: 74.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0934/1.343, allocations: 73.78 MB / 0.8822 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13/14.34, allocations: 15.75 kB / 0.8822 GB, free: 0.8008 MB / 0.5137 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