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.001701/0.001701, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001979/0.001979, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.476/1.476, allocations: 222.9 MB / 242.4 MB, free: 15.17 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.2282/0.2282, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 59.91 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4081/0.4096, allocations: 60.81 MB / 0.5184 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01293/0.4226, allocations: 11.81 MB / 0.5299 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008837/0.4314, allocations: 4.056 MB / 0.5339 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002379/0.4339, allocations: 64.06 kB / 0.534 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003089/0.437, allocations: 1.177 MB / 0.5351 GB, free: 7.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005116/0.4422, allocations: 1.757 MB / 0.5368 GB, free: 5.836 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001758/0.4439, allocations: 0.5613 MB / 0.5374 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006619/0.4506, allocations: 3.946 MB / 0.5412 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004427/0.455, allocations: 1.794 MB / 0.543 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003201/0.4583, allocations: 1.165 MB / 0.5441 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00381/0.4621, allocations: 1.682 MB / 0.5458 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.4632, allocations: 220 kB / 0.546 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004023/0.4673, allocations: 1.303 MB / 0.5472 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002727/0.47, allocations: 1.578 MB / 0.5488 GB, free: 12.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00446/0.4745, allocations: 1.867 MB / 0.5506 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.4846, allocations: 6.255 MB / 0.5567 GB, free: 4.637 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.4847, allocations: 4 kB / 0.5567 GB, free: 4.633 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4847, allocations: 0 / 0.5567 GB, free: 4.633 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002724/0.485, allocations: 0 / 0.5567 GB, free: 4.633 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.01085/0.4958, allocations: 4.138 MB / 0.5608 GB, free: 436 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.4959, allocations: 8.031 kB / 0.5608 GB, free: 428 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00176/0.4977, allocations: 0.6876 MB / 0.5614 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01979/0.5175, allocations: 5.692 MB / 0.567 GB, free: 10.01 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007452/0.5249, allocations: 2.825 MB / 0.5698 GB, free: 7.141 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.5252, allocations: 184.5 kB / 0.5699 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.5267, allocations: 307.7 kB / 0.5702 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02165/0.5484, allocations: 10.72 MB / 0.5807 GB, free: 11.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001455/0.5486, allocations: 31.7 kB / 0.5807 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009448/0.5495, allocations: 111.8 kB / 0.5808 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004157/0.5537, allocations: 2.467 MB / 0.5832 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02098/0.5747, allocations: 10.16 MB / 0.5932 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05881/0.6336, allocations: 35.51 MB / 0.6278 GB, free: 10.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01275/0.6464, allocations: 5.596 MB / 0.6333 GB, free: 4.496 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003929/0.6503, allocations: 2.326 MB / 0.6356 GB, free: 2.164 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002176/0.6525, allocations: 1.88 MB / 0.6374 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/0.6526, allocations: 48.56 kB / 0.6375 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 9.548e-06/0.6526, allocations: 0 / 0.6375 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.03934/0.692, allocations: 14.97 MB / 0.6521 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001647/0.6937, allocations: 1.606 MB / 0.6536 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005808/0.6995, allocations: 2.811 MB / 0.6564 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005375/0.7001, allocations: 57.61 kB / 0.6564 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002572/0.7027, allocations: 2.674 MB / 0.6591 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001466/0.7042, allocations: 0.848 MB / 0.6599 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002796/0.707, allocations: 1.099 MB / 0.661 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.7071, allocations: 309.1 kB / 0.6613 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004187/0.7113, allocations: 2.626 MB / 0.6638 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006541/0.7179, allocations: 5.631 MB / 0.6693 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/0.7302, allocations: 8.941 MB / 0.678 GB, free: 3.012 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/0.7303, allocations: 28 kB / 0.6781 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06841/0.7987, allocations: 19.02 MB / 0.6967 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.799, allocations: 48 kB / 0.6967 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06617/0.8651, allocations: 12.02 MB / 0.7084 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07102/0.9362, allocations: 10.28 MB / 0.7185 GB, free: 9.516 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004909/0.9412, allocations: 1.298 MB / 0.7197 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2984/1.24, allocations: 18.21 MB / 0.7375 GB, free: 176.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00454/1.244, allocations: 431.5 kB / 0.7379 GB, free: 176.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009949/1.245, allocations: 318.5 kB / 0.7382 GB, free: 176.8 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.003806/1.249, allocations: 2.021 MB / 0.7402 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006451/1.25, allocations: 271.5 kB / 0.7405 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00958/1.259, allocations: 5.109 MB / 0.7455 GB, free: 174.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00749/1.267, allocations: 4.41 MB / 0.7498 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.859e-05/1.267, allocations: 6.688 kB / 0.7498 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.718e-05/1.267, allocations: 7.688 kB / 0.7498 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01989/1.287, allocations: 12.92 MB / 0.7624 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-05/1.287, allocations: 7.562 kB / 0.7624 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/1.289, allocations: 457.3 kB / 0.7628 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002693/1.292, allocations: 0.9448 MB / 0.7638 GB, free: 167.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/1.292, allocations: 51.91 kB / 0.7638 GB, free: 167.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005166/1.297, allocations: 5.829 MB / 0.7695 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007628/1.298, allocations: 1.546 MB / 0.771 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009158/1.307, allocations: 7.731 MB / 0.7786 GB, free: 152.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/1.308, allocations: 334.1 kB / 0.7789 GB, free: 152 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003408/1.308, allocations: 42.94 kB / 0.7789 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/1.31, allocations: 203 kB / 0.7791 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/1.31, allocations: 140.4 kB / 0.7793 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/1.31, allocations: 67.98 kB / 0.7793 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001954/1.312, allocations: 1.733 MB / 0.781 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.312, allocations: 4.594 kB / 0.781 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004045/1.316, allocations: 1.1 MB / 0.7821 GB, free: 148.7 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.009122/1.325, allocations: 8.398 MB / 0.7903 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008971/1.334, allocations: 6.63 MB / 0.7968 GB, free: 133.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.334, allocations: 4 kB / 0.7968 GB, free: 133.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003065/1.337, allocations: 2.524 MB / 0.7992 GB, free: 131 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002077/1.34, allocations: 376.8 kB / 0.7996 GB, free: 130.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1247/1.464, allocations: 59.41 MB / 0.8576 GB, free: 66.63 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002896/1.467, allocations: 3.163 MB / 0.8607 GB, free: 63.44 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003737/1.471, allocations: 2.064 MB / 0.8627 GB, free: 61.37 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002089/1.473, allocations: 1.663 MB / 0.8643 GB, free: 59.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.032e-06/1.473, allocations: 0 / 0.8643 GB, free: 59.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/1.582, allocations: 72.09 MB / 0.9347 GB, free: 3.852 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.02/21.6, allocations: 6.969 kB / 0.9347 GB, free: 3.848 MB / 0.5919 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