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.001178/0.001178, allocations: 117.7 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.4 MB, free: 10.83 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.001699, allocations: 78.31 kB / 417.2 MB, free: 20.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1317, allocations: 62.43 MB / 479.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02533/0.1571, allocations: 25.55 MB / 0.4933 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01416/0.1713, allocations: 6.251 MB / 0.4994 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004501/0.1758, allocations: 103.8 kB / 0.4995 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.1789, allocations: 1.106 MB / 0.5006 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004588/0.1835, allocations: 1.624 MB / 0.5022 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.185, allocations: 0.5187 MB / 0.5027 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2655/0.4505, allocations: 4.018 MB / 0.5066 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004019/0.4546, allocations: 1.86 MB / 0.5084 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002977/0.4576, allocations: 1.158 MB / 0.5096 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003538/0.4612, allocations: 1.847 MB / 0.5114 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009276/0.4621, allocations: 218 kB / 0.5116 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003421/0.4656, allocations: 1.296 MB / 0.5128 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003293/0.4689, allocations: 1.591 MB / 0.5144 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003527/0.4724, allocations: 1.851 MB / 0.5162 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.4828, allocations: 5.972 MB / 0.522 GB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.4829, allocations: 3.438 kB / 0.522 GB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4829, allocations: 1.281 kB / 0.522 GB, free: 9.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000214/0.4831, allocations: 0.5625 kB / 0.522 GB, free: 9.363 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.0109/0.494, allocations: 4.087 MB / 0.526 GB, free: 7.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.4941, allocations: 9.562 kB / 0.526 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001114/0.4952, allocations: 0.6926 MB / 0.5267 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01816/0.5133, allocations: 6.153 MB / 0.5327 GB, free: 4.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007594/0.521, allocations: 2.611 MB / 0.5353 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.5212, allocations: 179.5 kB / 0.5354 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008801/0.522, allocations: 311.5 kB / 0.5357 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01721/0.5393, allocations: 10.72 MB / 0.5462 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-05/0.5394, allocations: 29.77 kB / 0.5462 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003784/0.5398, allocations: 111.1 kB / 0.5463 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003876/0.5436, allocations: 2.458 MB / 0.5487 GB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02179/0.5655, allocations: 10.16 MB / 0.5587 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0598/0.6253, allocations: 35.68 MB / 0.5935 GB, free: 9.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01185/0.6372, allocations: 5.602 MB / 0.599 GB, free: 3.426 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003455/0.6407, allocations: 2.334 MB / 0.6013 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001787/0.6425, allocations: 1.876 MB / 0.6031 GB, free: 14.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.676e-05/0.6426, allocations: 51.78 kB / 0.6031 GB, free: 14.83 MB / 462.1 MB Notification: Performance of pre-optimization done (n=224): time 6.372e-06/0.6426, allocations: 4 kB / 0.6031 GB, free: 14.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.03766/0.6802, allocations: 14.95 MB / 0.6177 GB, free: 15.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001566/0.6818, allocations: 1.617 MB / 0.6193 GB, free: 14.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006352/0.6882, allocations: 2.795 MB / 0.6221 GB, free: 11.21 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003375/0.6886, allocations: 63.36 kB / 0.6221 GB, free: 11.15 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00224/0.6908, allocations: 2.67 MB / 0.6247 GB, free: 8.473 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001309/0.6922, allocations: 0.862 MB / 0.6256 GB, free: 7.621 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002759/0.6949, allocations: 1.095 MB / 0.6266 GB, free: 6.52 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.6951, allocations: 305.1 kB / 0.6269 GB, free: 6.219 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004436/0.6995, allocations: 2.626 MB / 0.6295 GB, free: 3.586 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006241/0.7058, allocations: 5.632 MB / 0.635 GB, free: 12.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/0.7168, allocations: 8.941 MB / 0.6437 GB, free: 2.559 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/0.7169, allocations: 35.94 kB / 0.6438 GB, free: 2.523 MB / 494.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.0716/0.7885, allocations: 17.12 MB / 0.6605 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000211/0.7888, allocations: 52.03 kB / 0.6605 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04731/0.8361, allocations: 10.63 MB / 0.6709 GB, free: 6.848 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04422/0.8804, allocations: 8.648 MB / 0.6793 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005478/0.8859, allocations: 1.298 MB / 0.6806 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03143/0.9174, allocations: 17.81 MB / 0.698 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005078/0.9225, allocations: 426 kB / 0.6984 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/0.9241, allocations: 320 kB / 0.6987 GB, free: 10.06 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.00584/0.93, allocations: 2.033 MB / 0.7007 GB, free: 8.023 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000799/0.9308, allocations: 272.4 kB / 0.701 GB, free: 7.754 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/0.9417, allocations: 5.106 MB / 0.7059 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2577/1.2, allocations: 4.406 MB / 0.7103 GB, free: 196.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/1.2, allocations: 1.344 kB / 0.7103 GB, free: 196.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.223e-05/1.2, allocations: 9.438 kB / 0.7103 GB, free: 196.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02498/1.225, allocations: 12.93 MB / 0.7229 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/1.225, allocations: 6.375 kB / 0.7229 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002041/1.227, allocations: 457.1 kB / 0.7233 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002885/1.23, allocations: 0.9448 MB / 0.7243 GB, free: 193.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003259/1.23, allocations: 53.34 kB / 0.7243 GB, free: 193.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005474/1.235, allocations: 5.84 MB / 0.73 GB, free: 189.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007717/1.236, allocations: 1.546 MB / 0.7315 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/1.246, allocations: 7.734 MB / 0.7391 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008/1.247, allocations: 330.2 kB / 0.7394 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003891/1.248, allocations: 45.23 kB / 0.7394 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/1.249, allocations: 198.2 kB / 0.7396 GB, free: 185.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003852/1.249, allocations: 145.5 kB / 0.7398 GB, free: 185.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001839/1.25, allocations: 66.58 kB / 0.7398 GB, free: 185.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002431/1.252, allocations: 1.732 MB / 0.7415 GB, free: 184.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.252, allocations: 0 / 0.7415 GB, free: 184.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004529/1.257, allocations: 1.078 MB / 0.7426 GB, free: 184.6 MB / 0.545 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.009903/1.266, allocations: 8.387 MB / 0.7508 GB, free: 177.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01574/1.282, allocations: 9.585 MB / 0.7601 GB, free: 168.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/1.282, allocations: 3.938 kB / 0.7601 GB, free: 168.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003309/1.286, allocations: 2.525 MB / 0.7626 GB, free: 165.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002215/1.288, allocations: 383 kB / 0.763 GB, free: 165.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1255/1.413, allocations: 61.53 MB / 0.823 GB, free: 98.15 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/1.416, allocations: 3.161 MB / 0.8261 GB, free: 94.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003908/1.42, allocations: 2.056 MB / 0.8281 GB, free: 92.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001837/1.422, allocations: 1.663 MB / 0.8298 GB, free: 91.23 MB / 0.545 GB Notification: Performance of SimCode: time 7.51e-07/1.422, allocations: 0 / 0.8298 GB, free: 91.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/1.523, allocations: 73.9 MB / 0.9019 GB, free: 17.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/1.523, allocations: 235.7 kB / 0.9022 GB, free: 17.24 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.64/5.163, allocations: 0 / 0.9022 GB, free: 17.24 MB / 0.545 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches