Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_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.001173/0.001173, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001086/0.001086, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2298/0.2298, allocations: 44.19 MB / 336.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 67.89 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3531, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01445/0.3676, allocations: 11.98 MB / 0.5301 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.3785, allocations: 4.371 MB / 0.5344 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002967/0.3815, allocations: 74.75 kB / 0.5345 GB, free: 7.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0064/0.3879, allocations: 2.762 MB / 0.5372 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007281/0.3953, allocations: 2.096 MB / 0.5392 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003487/0.3988, allocations: 1.005 MB / 0.5402 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009802/0.4086, allocations: 5.287 MB / 0.5454 GB, free: 472 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006225/0.4149, allocations: 3.435 MB / 0.5487 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004073/0.419, allocations: 1.764 MB / 0.5504 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004379/0.4234, allocations: 2.445 MB / 0.5528 GB, free: 8.754 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001533/0.425, allocations: 368 kB / 0.5532 GB, free: 8.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003663/0.4287, allocations: 1.42 MB / 0.5546 GB, free: 6.973 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00319/0.4319, allocations: 2.205 MB / 0.5567 GB, free: 4.762 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005395/0.4373, allocations: 2.575 MB / 0.5592 GB, free: 2.172 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.4488, allocations: 8.289 MB / 0.5673 GB, free: 9.852 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4489, allocations: 0 / 0.5673 GB, free: 9.852 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4489, allocations: 0 / 0.5673 GB, free: 9.852 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003473/0.4492, allocations: 0 / 0.5673 GB, free: 9.852 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.0178/0.467, allocations: 6.037 MB / 0.5732 GB, free: 3.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4671, allocations: 8.031 kB / 0.5732 GB, free: 3.723 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002109/0.4692, allocations: 0.7985 MB / 0.574 GB, free: 2.914 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08808/0.5573, allocations: 7.246 MB / 0.5811 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009341/0.5667, allocations: 3.831 MB / 0.5848 GB, free: 7.766 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002895/0.567, allocations: 254.8 kB / 0.5851 GB, free: 7.516 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00177/0.5688, allocations: 351.7 kB / 0.5854 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0249/0.5937, allocations: 12.29 MB / 0.5974 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002196/0.594, allocations: 51.53 kB / 0.5975 GB, free: 10.02 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001186/0.5952, allocations: 167.8 kB / 0.5976 GB, free: 9.855 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004429/0.5996, allocations: 2.377 MB / 0.5999 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02235/0.622, allocations: 10.7 MB / 0.6104 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06746/0.6895, allocations: 48.64 MB / 0.6579 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01544/0.705, allocations: 5.857 MB / 0.6636 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004023/0.709, allocations: 3.128 MB / 0.6667 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02097/0.73, allocations: 13.02 MB / 0.6794 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/0.7301, allocations: 59.8 kB / 0.6794 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=193): time 4.749e-06/0.7301, allocations: 0 / 0.6794 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of matching and sorting (n=254): time 0.3666/1.097, allocations: 38.95 MB / 0.7175 GB, free: 171.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/1.097, allocations: 206.8 kB / 0.7177 GB, free: 171 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006221/1.103, allocations: 4.395 MB / 0.722 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007045/1.104, allocations: 66.7 kB / 0.722 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002259/1.106, allocations: 3.566 MB / 0.7255 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001119/1.107, allocations: 0.99 MB / 0.7265 GB, free: 167.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002075/1.109, allocations: 1.369 MB / 0.7278 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.41e-05/1.109, allocations: 310.2 kB / 0.7281 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004565/1.114, allocations: 3.114 MB / 0.7311 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006793/1.121, allocations: 7.045 MB / 0.738 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01112/1.132, allocations: 10.97 MB / 0.7487 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001875/1.132, allocations: 39.09 kB / 0.7488 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02587/1.158, allocations: 12.68 MB / 0.7612 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000135/1.158, allocations: 67.94 kB / 0.7612 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001792/1.158, allocations: 140 kB / 0.7614 GB, free: 142 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009891/1.168, allocations: 3.236 MB / 0.7645 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005795/1.174, allocations: 1.54 MB / 0.766 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02646/1.201, allocations: 16.61 MB / 0.7822 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006969/1.208, allocations: 428.8 kB / 0.7826 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/1.209, allocations: 408 kB / 0.783 GB, free: 119.7 MB / 0.5606 GB 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.003917/1.213, allocations: 2.345 MB / 0.7853 GB, free: 117.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009418/1.214, allocations: 429.1 kB / 0.7857 GB, free: 117 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/1.226, allocations: 7.525 MB / 0.7931 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.485e-05/1.226, allocations: 28 kB / 0.7931 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/1.226, allocations: 8 kB / 0.7931 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.812e-05/1.226, allocations: 15.95 kB / 0.7931 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02421/1.251, allocations: 15.05 MB / 0.8078 GB, free: 94.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-05/1.251, allocations: 4 kB / 0.8078 GB, free: 94.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/1.253, allocations: 379.4 kB / 0.8082 GB, free: 93.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007651/1.26, allocations: 2.927 MB / 0.8111 GB, free: 90.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004841/1.261, allocations: 40 kB / 0.8111 GB, free: 90.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01716/1.278, allocations: 14.81 MB / 0.8256 GB, free: 75.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/1.278, allocations: 5.625 kB / 0.8256 GB, free: 75.98 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02476/1.303, allocations: 11.5 MB / 0.8368 GB, free: 64.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001713/1.305, allocations: 474 kB / 0.8372 GB, free: 63.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001575/1.306, allocations: 36.47 kB / 0.8373 GB, free: 63.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004475/1.311, allocations: 199.7 kB / 0.8375 GB, free: 63.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/1.312, allocations: 141.8 kB / 0.8376 GB, free: 63.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003708/1.312, allocations: 64 kB / 0.8377 GB, free: 63.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006183/1.318, allocations: 2.75 MB / 0.8404 GB, free: 60.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.81e-07/1.319, allocations: 3.938 kB / 0.8404 GB, free: 60.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01002/1.329, allocations: 1.312 MB / 0.8416 GB, free: 59.43 MB / 0.5606 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.02296/1.352, allocations: 12.18 MB / 0.8535 GB, free: 47.17 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01877/1.37, allocations: 7.854 MB / 0.8612 GB, free: 39.32 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.37, allocations: 0 / 0.8612 GB, free: 39.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007657/1.378, allocations: 3.136 MB / 0.8643 GB, free: 36.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006507/1.385, allocations: 0.518 MB / 0.8648 GB, free: 35.67 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1436/1.528, allocations: 60.74 MB / 0.9241 GB, free: 0.6484 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005985/1.534, allocations: 3.672 MB / 0.9277 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005722/1.54, allocations: 2.173 MB / 0.9298 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004391/1.545, allocations: 2.221 MB / 0.932 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of SimCode: time 1.002e-06/1.545, allocations: 0 / 0.932 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4225/1.967, allocations: 94.34 MB / 1.024 GB, free: 143.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.5/30.46, allocations: 10.47 kB / 1.024 GB, free: 143.1 MB / 0.6075 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches