Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.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.JointUPS2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUPS2",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.001259/0.001259, allocations: 102.8 kB / 16.27 MB, free: 5.93 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.001392/0.001393, allocations: 188.1 kB / 17.2 MB, free: 5.574 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.518/1.518, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2486/0.2486, allocations: 43.52 MB / 313.9 MB, free: 0.5234 MB / 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.001538/0.001538, allocations: 72.66 kB / 382.8 MB, free: 56.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1299, allocations: 57.78 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01198/0.1419, allocations: 12.03 MB / 452.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.1528, allocations: 4.379 MB / 457 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002669/0.1556, allocations: 75.75 kB / 457.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006006/0.1616, allocations: 2.753 MB / 459.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006903/0.1686, allocations: 2.042 MB / 461.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003367/0.172, allocations: 1.01 MB / 462.9 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00958/0.1816, allocations: 5.127 MB / 468 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005771/0.1875, allocations: 3.432 MB / 471.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003946/0.1915, allocations: 1.772 MB / 473.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004004/0.1955, allocations: 2.453 MB / 475.7 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001532/0.1971, allocations: 368 kB / 476.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003578/0.2007, allocations: 1.412 MB / 477.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002657/0.2034, allocations: 2.197 MB / 479.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003584/0.207, allocations: 2.583 MB / 482.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.2172, allocations: 8.006 MB / 490.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.2173, allocations: 0 / 490.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.2173, allocations: 0 / 490.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003094/0.2176, allocations: 4 kB / 490.3 MB, free: 4.957 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.02145/0.2391, allocations: 5.932 MB / 496.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.447e-05/0.2392, allocations: 15.83 kB / 496.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003305/0.2425, allocations: 0.7946 MB / 497 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1146/0.3572, allocations: 7.219 MB / 0.4924 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009197/0.3664, allocations: 4.061 MB / 0.4964 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002457/0.3667, allocations: 254.8 kB / 0.4966 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001428/0.3682, allocations: 359.6 kB / 0.4969 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02553/0.3937, allocations: 12.28 MB / 0.5089 GB, free: 5.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001678/0.3939, allocations: 51.52 kB / 0.509 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005437/0.3945, allocations: 167.8 kB / 0.5091 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004226/0.3987, allocations: 2.377 MB / 0.5115 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02424/0.423, allocations: 10.71 MB / 0.5219 GB, free: 7.766 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3172/0.7402, allocations: 48.79 MB / 0.5696 GB, free: 51.78 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01488/0.7552, allocations: 5.853 MB / 0.5753 GB, free: 48.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00359/0.7588, allocations: 3.121 MB / 0.5783 GB, free: 46.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01723/0.7761, allocations: 13.02 MB / 0.591 GB, free: 35.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.298e-05/0.7762, allocations: 59.81 kB / 0.5911 GB, free: 35.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=193): time 5.209e-06/0.7762, allocations: 0 / 0.5911 GB, free: 35.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=254): time 0.1055/0.8817, allocations: 38.8 MB / 0.629 GB, free: 12.99 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.8819, allocations: 213.8 kB / 0.6292 GB, free: 12.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007064/0.889, allocations: 4.417 MB / 0.6335 GB, free: 8.297 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007104/0.8897, allocations: 68.23 kB / 0.6336 GB, free: 8.227 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002946/0.8927, allocations: 3.445 MB / 0.6369 GB, free: 4.781 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001723/0.8944, allocations: 0.9487 MB / 0.6379 GB, free: 3.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002135/0.8966, allocations: 1.365 MB / 0.6392 GB, free: 2.465 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.8967, allocations: 301.1 kB / 0.6395 GB, free: 2.168 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004625/0.9013, allocations: 3.11 MB / 0.6425 GB, free: 15.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008162/0.9095, allocations: 7.046 MB / 0.6494 GB, free: 6.074 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01487/0.9244, allocations: 10.96 MB / 0.6601 GB, free: 9.191 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001781/0.9246, allocations: 40 kB / 0.6601 GB, free: 9.152 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02782/0.9525, allocations: 12.67 MB / 0.6725 GB, free: 12.47 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001768/0.9527, allocations: 67.98 kB / 0.6726 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002496/0.9529, allocations: 136 kB / 0.6727 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0102/0.9632, allocations: 3.244 MB / 0.6759 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00593/0.9691, allocations: 1.536 MB / 0.6774 GB, free: 7.484 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02758/0.9967, allocations: 16.63 MB / 0.6936 GB, free: 6.715 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006686/1.003, allocations: 431.4 kB / 0.694 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001502/1.005, allocations: 404 kB / 0.6944 GB, free: 5.898 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 804 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,47,54.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005764/1.011, allocations: 2.355 MB / 0.6967 GB, free: 3.527 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/1.012, allocations: 402.8 kB / 0.6971 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01706/1.029, allocations: 7.527 MB / 0.7045 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.074e-05/1.029, allocations: 35.92 kB / 0.7045 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.49e-05/1.029, allocations: 15.98 kB / 0.7045 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.572e-05/1.029, allocations: 7.969 kB / 0.7045 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2885/1.318, allocations: 15.19 MB / 0.7193 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.266e-05/1.318, allocations: 2.594 kB / 0.7193 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002582/1.321, allocations: 379.9 kB / 0.7197 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009089/1.33, allocations: 2.931 MB / 0.7226 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005618/1.33, allocations: 39.72 kB / 0.7226 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02067/1.351, allocations: 14.78 MB / 0.737 GB, free: 161 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/1.351, allocations: 4.375 kB / 0.737 GB, free: 161 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01822/1.369, allocations: 11.47 MB / 0.7482 GB, free: 156.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/1.372, allocations: 0.9214 MB / 0.7491 GB, free: 156 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007314/1.373, allocations: 46.36 kB / 0.7492 GB, free: 156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002105/1.375, allocations: 188.6 kB / 0.7494 GB, free: 155.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005884/1.375, allocations: 157.6 kB / 0.7495 GB, free: 155.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000187/1.375, allocations: 61.61 kB / 0.7496 GB, free: 155.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00373/1.379, allocations: 2.774 MB / 0.7523 GB, free: 153.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.1e-07/1.379, allocations: 0 / 0.7523 GB, free: 153.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006254/1.385, allocations: 1.313 MB / 0.7536 GB, free: 151.8 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (189): * Single equations (assignments): 185 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,40,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01766/1.403, allocations: 12.14 MB / 0.7654 GB, free: 139.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01717/1.42, allocations: 10.36 MB / 0.7755 GB, free: 129.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/1.42, allocations: 4 kB / 0.7756 GB, free: 129.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004655/1.425, allocations: 3.124 MB / 0.7786 GB, free: 126.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003717/1.429, allocations: 0.519 MB / 0.7791 GB, free: 125.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0944/1.523, allocations: 68.53 MB / 0.846 GB, free: 48.96 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004314/1.528, allocations: 3.686 MB / 0.8496 GB, free: 45.26 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005272/1.533, allocations: 2.173 MB / 0.8518 GB, free: 43.08 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003531/1.536, allocations: 2.225 MB / 0.8539 GB, free: 40.85 MB / 0.4981 GB Notification: Performance of SimCode: time 2.265e-06/1.536, allocations: 0 / 0.8539 GB, free: 40.85 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4249/1.961, allocations: 98.62 MB / 0.9502 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/14, allocations: 14.33 kB / 0.9503 GB, free: 153.8 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches