Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_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.001207/0.001207, allocations: 109.4 kB / 16.41 MB, free: 6.445 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.001022/0.001022, allocations: 185 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2004/0.2004, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 71.91 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1023, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01161/0.1139, allocations: 11.82 MB / 0.4989 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007126/0.1211, allocations: 4.055 MB / 0.5029 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001197/0.1223, allocations: 59.88 kB / 0.503 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.1245, allocations: 1.175 MB / 0.5041 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003463/0.128, allocations: 1.791 MB / 0.5059 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.1293, allocations: 0.5652 MB / 0.5064 GB, free: 8.762 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004136/0.1334, allocations: 3.958 MB / 0.5103 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.1354, allocations: 1.799 MB / 0.512 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.1369, allocations: 1.164 MB / 0.5132 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001874/0.1388, allocations: 1.678 MB / 0.5148 GB, free: 116 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004638/0.1392, allocations: 220 kB / 0.515 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001983/0.1412, allocations: 1.295 MB / 0.5163 GB, free: 14.6 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.1425, allocations: 1.593 MB / 0.5178 GB, free: 13 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.1441, allocations: 1.863 MB / 0.5197 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005753/0.1499, allocations: 6.29 MB / 0.5258 GB, free: 4.812 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1499, allocations: 0 / 0.5258 GB, free: 4.812 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1499, allocations: 0 / 0.5258 GB, free: 4.812 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.15, allocations: 4 kB / 0.5258 GB, free: 4.809 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.006491/0.1565, allocations: 4.256 MB / 0.53 GB, free: 488 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1566, allocations: 15.89 kB / 0.53 GB, free: 472 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.194/0.3505, allocations: 0.6833 MB / 0.5306 GB, free: 37.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01904/0.3696, allocations: 5.717 MB / 0.5362 GB, free: 37.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00646/0.3761, allocations: 2.974 MB / 0.5391 GB, free: 36.83 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.3764, allocations: 176.8 kB / 0.5393 GB, free: 36.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001245/0.3776, allocations: 318.6 kB / 0.5396 GB, free: 36.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01604/0.3937, allocations: 10.71 MB / 0.5501 GB, free: 32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-05/0.3938, allocations: 26.72 kB / 0.5501 GB, free: 31.99 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003575/0.3942, allocations: 116.5 kB / 0.5502 GB, free: 31.95 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003215/0.3974, allocations: 2.463 MB / 0.5526 GB, free: 30.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.4124, allocations: 10.16 MB / 0.5625 GB, free: 22.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04165/0.4541, allocations: 35.58 MB / 0.5973 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/0.4655, allocations: 5.599 MB / 0.6027 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/0.4687, allocations: 2.326 MB / 0.605 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001669/0.4704, allocations: 1.88 MB / 0.6069 GB, free: 8.184 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.318e-05/0.4705, allocations: 52.56 kB / 0.6069 GB, free: 8.121 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 5.821e-06/0.4705, allocations: 0 / 0.6069 GB, free: 8.121 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03554/0.506, allocations: 15.08 MB / 0.6216 GB, free: 9.023 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00134/0.5074, allocations: 1.611 MB / 0.6232 GB, free: 7.254 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004333/0.5118, allocations: 2.84 MB / 0.626 GB, free: 4.402 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004743/0.5123, allocations: 49.7 kB / 0.626 GB, free: 4.348 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001934/0.5142, allocations: 2.799 MB / 0.6288 GB, free: 1.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001211/0.5154, allocations: 0.8913 MB / 0.6296 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002544/0.518, allocations: 1.108 MB / 0.6307 GB, free: 15.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.5181, allocations: 305.1 kB / 0.631 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003879/0.522, allocations: 2.626 MB / 0.6336 GB, free: 12.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005824/0.5279, allocations: 5.639 MB / 0.6391 GB, free: 5.461 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01037/0.5382, allocations: 8.929 MB / 0.6478 GB, free: 11.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001188/0.5384, allocations: 32.88 kB / 0.6478 GB, free: 11.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06377/0.6022, allocations: 19.03 MB / 0.6664 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.6023, allocations: 48 kB / 0.6665 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04457/0.6469, allocations: 12.01 MB / 0.6782 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04809/0.695, allocations: 10.28 MB / 0.6882 GB, free: 1.566 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004551/0.6996, allocations: 1.305 MB / 0.6895 GB, free: 268 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03031/0.73, allocations: 18.22 MB / 0.7073 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005039/0.7351, allocations: 443.5 kB / 0.7077 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/0.7362, allocations: 315.9 kB / 0.708 GB, free: 13.02 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.004138/0.7404, allocations: 2.024 MB / 0.71 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007773/0.7411, allocations: 286.1 kB / 0.7103 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009514/0.7507, allocations: 5.118 MB / 0.7153 GB, free: 5.543 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008386/0.7591, allocations: 4.401 MB / 0.7196 GB, free: 1.129 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.7592, allocations: 0 / 0.7196 GB, free: 1.129 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.43e-05/0.7592, allocations: 11.97 kB / 0.7196 GB, free: 1.117 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/0.7845, allocations: 12.93 MB / 0.7322 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.774e-05/0.7846, allocations: 11.94 kB / 0.7322 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002128/0.7867, allocations: 459.3 kB / 0.7326 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002901/0.7896, allocations: 0.9386 MB / 0.7336 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003538/0.79, allocations: 59.89 kB / 0.7336 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006676/0.7967, allocations: 5.823 MB / 0.7393 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001069/0.7978, allocations: 1.562 MB / 0.7408 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/0.8102, allocations: 7.736 MB / 0.7484 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008541/0.8111, allocations: 347.2 kB / 0.7487 GB, free: 2.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007029/0.8118, allocations: 51.92 kB / 0.7488 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00196/0.8138, allocations: 199.6 kB / 0.749 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004743/0.8143, allocations: 145 kB / 0.7491 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000228/0.8145, allocations: 63.98 kB / 0.7492 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002911/0.8174, allocations: 1.737 MB / 0.7509 GB, free: 292 kB / 0.5762 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8174, allocations: 0 / 0.7509 GB, free: 292 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.2155/1.033, allocations: 1.109 MB / 0.7519 GB, free: 194.4 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.01134/1.044, allocations: 8.394 MB / 0.7601 GB, free: 193.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01174/1.056, allocations: 6.633 MB / 0.7666 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-05/1.056, allocations: 5.125 kB / 0.7666 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004254/1.06, allocations: 2.526 MB / 0.7691 GB, free: 189.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/1.063, allocations: 381.5 kB / 0.7694 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1324/1.196, allocations: 59.66 MB / 0.8277 GB, free: 140 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004075/1.2, allocations: 3.167 MB / 0.8308 GB, free: 136.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003987/1.204, allocations: 2.061 MB / 0.8328 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002182/1.206, allocations: 1.671 MB / 0.8344 GB, free: 133.1 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/1.206, allocations: 0 / 0.8344 GB, free: 133.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09652/1.303, allocations: 70.99 MB / 0.9038 GB, free: 61.98 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.38/20.68, allocations: 23.75 kB / 0.9038 GB, free: 61.96 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches