Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001613, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2177/0.2177, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3614, allocations: 62.43 MB / 0.5305 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01235/0.3738, allocations: 11.76 MB / 0.542 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009171/0.383, allocations: 4.054 MB / 0.546 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002328/0.3854, allocations: 60.47 kB / 0.546 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003097/0.3886, allocations: 1.182 MB / 0.5472 GB, free: 112 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005286/0.3939, allocations: 1.761 MB / 0.5489 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.3958, allocations: 0.5613 MB / 0.5494 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006032/0.4018, allocations: 4.039 MB / 0.5534 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003274/0.4051, allocations: 1.772 MB / 0.5551 GB, free: 8.387 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00244/0.4076, allocations: 1.156 MB / 0.5562 GB, free: 7.227 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002812/0.4104, allocations: 1.674 MB / 0.5579 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008573/0.4113, allocations: 216 kB / 0.5581 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002944/0.4143, allocations: 1.283 MB / 0.5593 GB, free: 4.051 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002069/0.4164, allocations: 1.562 MB / 0.5609 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003437/0.4199, allocations: 1.84 MB / 0.5627 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008743/0.4286, allocations: 6.212 MB / 0.5687 GB, free: 10.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.4287, allocations: 0 / 0.5687 GB, free: 10.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.4287, allocations: 4 kB / 0.5687 GB, free: 10.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002629/0.429, allocations: 7.938 kB / 0.5687 GB, free: 10.38 MB / 430.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.009988/0.439, allocations: 4.209 MB / 0.5729 GB, free: 6.098 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.439, allocations: 12.03 kB / 0.5729 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001536/0.4406, allocations: 0.6837 MB / 0.5735 GB, free: 5.391 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01875/0.4593, allocations: 6.183 MB / 0.5796 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00579/0.4652, allocations: 2.619 MB / 0.5821 GB, free: 12.53 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/0.4654, allocations: 196.5 kB / 0.5823 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00126/0.4667, allocations: 311.6 kB / 0.5826 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01851/0.4852, allocations: 10.71 MB / 0.5931 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.4854, allocations: 27.75 kB / 0.5931 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009812/0.4863, allocations: 111.8 kB / 0.5932 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00395/0.4903, allocations: 2.475 MB / 0.5956 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0208/0.5111, allocations: 10.15 MB / 0.6055 GB, free: 4.082 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05389/0.5651, allocations: 35.57 MB / 0.6403 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.5766, allocations: 5.59 MB / 0.6457 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003553/0.5802, allocations: 2.341 MB / 0.648 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001699/0.5819, allocations: 1.876 MB / 0.6499 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.704e-05/0.582, allocations: 56.5 kB / 0.6499 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 5.029e-06/0.582, allocations: 7.938 kB / 0.6499 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.03605/0.6181, allocations: 15.03 MB / 0.6646 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001381/0.6195, allocations: 1.607 MB / 0.6662 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004465/0.624, allocations: 2.811 MB / 0.6689 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005256/0.6245, allocations: 57.7 kB / 0.669 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.6266, allocations: 2.788 MB / 0.6717 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00126/0.6279, allocations: 0.8836 MB / 0.6725 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003123/0.631, allocations: 1.108 MB / 0.6736 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.6312, allocations: 304.9 kB / 0.6739 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004309/0.6355, allocations: 2.626 MB / 0.6765 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006448/0.642, allocations: 5.635 MB / 0.682 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/0.6534, allocations: 8.937 MB / 0.6907 GB, free: 8.141 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001174/0.6536, allocations: 28 kB / 0.6907 GB, free: 8.113 MB / 0.545 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.05923/0.7128, allocations: 17.15 MB / 0.7075 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001308/0.713, allocations: 48 kB / 0.7075 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03988/0.7529, allocations: 10.63 MB / 0.7179 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04196/0.7949, allocations: 8.644 MB / 0.7263 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004727/0.7996, allocations: 1.298 MB / 0.7276 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3039/1.104, allocations: 17.82 MB / 0.745 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004567/1.108, allocations: 416.8 kB / 0.7454 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/1.11, allocations: 315.2 kB / 0.7457 GB, free: 169.7 MB / 0.5762 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.004079/1.114, allocations: 2.02 MB / 0.7477 GB, free: 169 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000549/1.114, allocations: 291.3 kB / 0.748 GB, free: 169 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007583/1.122, allocations: 5.108 MB / 0.7529 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006596/1.128, allocations: 4.412 MB / 0.7573 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.128, allocations: 0 / 0.7573 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-05/1.129, allocations: 7.875 kB / 0.7573 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01966/1.148, allocations: 12.92 MB / 0.7699 GB, free: 154 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.408e-05/1.148, allocations: 8 kB / 0.7699 GB, free: 154 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001903/1.15, allocations: 459.2 kB / 0.7703 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002601/1.153, allocations: 0.9383 MB / 0.7712 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003182/1.153, allocations: 51.67 kB / 0.7713 GB, free: 152.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005203/1.158, allocations: 5.83 MB / 0.777 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007728/1.159, allocations: 1.558 MB / 0.7785 GB, free: 144.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009671/1.169, allocations: 7.754 MB / 0.7861 GB, free: 137.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006693/1.17, allocations: 341.1 kB / 0.7864 GB, free: 136.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006468/1.17, allocations: 43.98 kB / 0.7864 GB, free: 136.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/1.172, allocations: 194.6 kB / 0.7866 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004839/1.172, allocations: 153.7 kB / 0.7868 GB, free: 136.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/1.173, allocations: 63.73 kB / 0.7868 GB, free: 136.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002252/1.175, allocations: 1.729 MB / 0.7885 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.51e-07/1.175, allocations: 0 / 0.7885 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004755/1.18, allocations: 1.079 MB / 0.7896 GB, free: 133.6 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.01027/1.19, allocations: 8.402 MB / 0.7978 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009369/1.199, allocations: 6.58 MB / 0.8042 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/1.199, allocations: 0 / 0.8042 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003325/1.203, allocations: 2.532 MB / 0.8067 GB, free: 116 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/1.205, allocations: 383 kB / 0.8071 GB, free: 115.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1244/1.33, allocations: 56.75 MB / 0.8625 GB, free: 54.24 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004465/1.334, allocations: 3.163 MB / 0.8656 GB, free: 51.04 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004687/1.339, allocations: 2.052 MB / 0.8676 GB, free: 48.98 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00272/1.342, allocations: 1.663 MB / 0.8692 GB, free: 47.32 MB / 0.5762 GB Notification: Performance of SimCode: time 2.825e-06/1.342, allocations: 4 kB / 0.8692 GB, free: 47.32 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.161/1.503, allocations: 70.79 MB / 0.9383 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.77/21.28, allocations: 12.05 kB / 0.9383 GB, free: 8.695 MB / 0.6075 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.csv","/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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches