Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008591/0.0008591, allocations: 175 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.209/1.209, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006722/0.0006722, allocations: 86.31 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2956/0.2956, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003603, allocations: 12 kB / 432.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09664, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.2309/0.3276, allocations: 23.17 MB / 0.5021 GB, free: 33.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.3408, allocations: 5.954 MB / 0.5079 GB, free: 30.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004331/0.3451, allocations: 104 kB / 0.508 GB, free: 30 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002727/0.3479, allocations: 1.093 MB / 0.509 GB, free: 29.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008645/0.3566, allocations: 3.53 MB / 0.5125 GB, free: 28.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.3586, allocations: 0.5031 MB / 0.513 GB, free: 28.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004684/0.3633, allocations: 4.234 MB / 0.5171 GB, free: 26.64 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002491/0.3658, allocations: 2.208 MB / 0.5193 GB, free: 25.72 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001374/0.3672, allocations: 1.009 MB / 0.5202 GB, free: 25.4 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0017/0.3689, allocations: 1.668 MB / 0.5219 GB, free: 24.92 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000348/0.3693, allocations: 125.2 kB / 0.522 GB, free: 24.92 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002123/0.3714, allocations: 1.28 MB / 0.5232 GB, free: 24.6 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.3725, allocations: 1.479 MB / 0.5247 GB, free: 24.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.3739, allocations: 1.677 MB / 0.5263 GB, free: 22.99 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005414/0.3793, allocations: 4.728 MB / 0.5309 GB, free: 22.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3793, allocations: 0 / 0.5309 GB, free: 22.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3793, allocations: 0 / 0.5309 GB, free: 22.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001962/0.3795, allocations: 3.938 kB / 0.5309 GB, free: 22.03 MB / 378.7 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.00678/0.3863, allocations: 3.418 MB / 0.5343 GB, free: 20.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.3864, allocations: 8.906 kB / 0.5343 GB, free: 20.01 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001103/0.3875, allocations: 0.6911 MB / 0.535 GB, free: 19.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01781/0.4053, allocations: 5.799 MB / 0.5406 GB, free: 17.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006202/0.4115, allocations: 2.945 MB / 0.5435 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.4117, allocations: 177.6 kB / 0.5437 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/0.4128, allocations: 323.9 kB / 0.544 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01586/0.4287, allocations: 10.72 MB / 0.5545 GB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.31e-05/0.4288, allocations: 27.66 kB / 0.5545 GB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003646/0.4291, allocations: 115.8 kB / 0.5546 GB, free: 8.582 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003218/0.4324, allocations: 2.467 MB / 0.557 GB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.4499, allocations: 10.14 MB / 0.5669 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0514/0.5014, allocations: 35.68 MB / 0.6017 GB, free: 7.445 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.5132, allocations: 5.586 MB / 0.6072 GB, free: 1.633 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003371/0.5166, allocations: 2.331 MB / 0.6095 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001764/0.5184, allocations: 1.876 MB / 0.6113 GB, free: 13.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/0.5185, allocations: 56.44 kB / 0.6114 GB, free: 13.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=224): time 5.46e-06/0.5185, allocations: 4 kB / 0.6114 GB, free: 13.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.03722/0.5557, allocations: 14.98 MB / 0.626 GB, free: 13.92 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001476/0.5572, allocations: 1.511 MB / 0.6275 GB, free: 12.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004698/0.562, allocations: 2.816 MB / 0.6302 GB, free: 9.418 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004072/0.5624, allocations: 53.7 kB / 0.6303 GB, free: 9.359 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001978/0.5644, allocations: 2.689 MB / 0.6329 GB, free: 6.629 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001126/0.5655, allocations: 0.8442 MB / 0.6337 GB, free: 5.773 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004958/0.5661, allocations: 108 kB / 0.6338 GB, free: 5.668 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004409/0.5665, allocations: 0.5453 MB / 0.6344 GB, free: 5.117 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00411/0.5706, allocations: 2.607 MB / 0.6369 GB, free: 2.504 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006434/0.5771, allocations: 5.612 MB / 0.6424 GB, free: 11.42 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01075/0.5878, allocations: 8.909 MB / 0.6511 GB, free: 1.039 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.686e-05/0.588, allocations: 28 kB / 0.6511 GB, free: 1.012 MB / 474.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.0665/0.6545, allocations: 18.97 MB / 0.6696 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001498/0.6547, allocations: 52 kB / 0.6697 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04593/0.7006, allocations: 12.01 MB / 0.6814 GB, free: 1.922 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2841/0.9848, allocations: 10.28 MB / 0.6915 GB, free: 150.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00477/0.9896, allocations: 1.299 MB / 0.6927 GB, free: 150.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02623/1.016, allocations: 16.01 MB / 0.7084 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004926/1.021, allocations: 433.5 kB / 0.7088 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/1.022, allocations: 323.1 kB / 0.7091 GB, free: 146.7 MB / 0.4948 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.00441/1.026, allocations: 2.032 MB / 0.7111 GB, free: 145.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006264/1.027, allocations: 272 kB / 0.7113 GB, free: 145.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009059/1.036, allocations: 5.105 MB / 0.7163 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008189/1.044, allocations: 4.391 MB / 0.7206 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/1.044, allocations: 2.188 kB / 0.7206 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/1.045, allocations: 13.02 kB / 0.7206 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02222/1.067, allocations: 12.91 MB / 0.7332 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/1.067, allocations: 10.69 kB / 0.7332 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001912/1.069, allocations: 455.2 kB / 0.7337 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002702/1.071, allocations: 0.947 MB / 0.7346 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002739/1.072, allocations: 52.31 kB / 0.7346 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005452/1.077, allocations: 5.466 MB / 0.74 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008135/1.078, allocations: 1.458 MB / 0.7414 GB, free: 131.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01083/1.089, allocations: 7.712 MB / 0.7489 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008951/1.09, allocations: 331.6 kB / 0.7493 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007672/1.091, allocations: 48.53 kB / 0.7493 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/1.093, allocations: 192.3 kB / 0.7495 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006046/1.093, allocations: 149 kB / 0.7496 GB, free: 124.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002137/1.093, allocations: 64.92 kB / 0.7497 GB, free: 124 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002909/1.096, allocations: 1.709 MB / 0.7514 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/1.096, allocations: 2.406 kB / 0.7514 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004961/1.101, allocations: 1.107 MB / 0.7524 GB, free: 121.2 MB / 0.4948 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01041/1.112, allocations: 8.366 MB / 0.7606 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01058/1.122, allocations: 6.562 MB / 0.767 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/1.122, allocations: 4 kB / 0.767 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003343/1.126, allocations: 2.526 MB / 0.7695 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005117/1.131, allocations: 370.6 kB / 0.7698 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08881/1.22, allocations: 40.25 MB / 0.8091 GB, free: 60.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0042/1.224, allocations: 3.171 MB / 0.8122 GB, free: 57.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002682/1.227, allocations: 1.722 MB / 0.8139 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of SimCode: time 8.22e-07/1.227, allocations: 4 kB / 0.8139 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.227/8.453, allocations: 124.4 MB / 0.9355 GB, free: 117.4 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches