Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.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.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001393, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001617/0.001617, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2668/0.2668, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001853, allocations: 79.78 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1366, allocations: 62.45 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01507/0.1517, allocations: 11.94 MB / 492.1 MB, free: 9.176 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.1639, allocations: 4.386 MB / 496.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002965/0.1669, allocations: 75.75 kB / 496.5 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006487/0.1734, allocations: 2.752 MB / 499.3 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006975/0.1805, allocations: 1.988 MB / 0.4895 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.1837, allocations: 1.002 MB / 0.4905 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00906/0.1928, allocations: 5.362 MB / 0.4957 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00611/0.1989, allocations: 3.444 MB / 0.4991 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004311/0.2033, allocations: 1.737 MB / 0.5008 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004697/0.208, allocations: 2.442 MB / 0.5032 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001845/0.2099, allocations: 368 kB / 0.5035 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003974/0.2139, allocations: 1.4 MB / 0.5049 GB, free: 124 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.264/0.4779, allocations: 2.16 MB / 0.507 GB, free: 18.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005545/0.4835, allocations: 2.555 MB / 0.5095 GB, free: 17.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.4977, allocations: 7.928 MB / 0.5172 GB, free: 16.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.4977, allocations: 1.281 kB / 0.5173 GB, free: 16.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4977, allocations: 0 / 0.5173 GB, free: 16.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003497/0.4981, allocations: 0 / 0.5173 GB, free: 16.21 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.02226/0.5204, allocations: 5.876 MB / 0.523 GB, free: 14.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.5204, allocations: 15.56 kB / 0.523 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003062/0.5235, allocations: 0.7989 MB / 0.5238 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09374/0.6173, allocations: 7.219 MB / 0.5308 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007606/0.6249, allocations: 3.536 MB / 0.5343 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.6251, allocations: 254.5 kB / 0.5345 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009137/0.626, allocations: 354.8 kB / 0.5349 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02075/0.6468, allocations: 12.29 MB / 0.5469 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/0.647, allocations: 45.09 kB / 0.5469 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005389/0.6475, allocations: 166.4 kB / 0.5471 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003953/0.6515, allocations: 2.379 MB / 0.5494 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02456/0.676, allocations: 10.69 MB / 0.5598 GB, free: 4.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06581/0.7419, allocations: 48.78 MB / 0.6075 GB, free: 2.586 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01652/0.7585, allocations: 5.846 MB / 0.6132 GB, free: 12.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004089/0.7626, allocations: 3.115 MB / 0.6162 GB, free: 9.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02043/0.783, allocations: 13.02 MB / 0.6289 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/0.7831, allocations: 47.88 kB / 0.629 GB, free: 12.15 MB / 478.1 MB Notification: Performance of pre-optimization done (n=193): time 5.8e-06/0.7831, allocations: 7.469 kB / 0.629 GB, free: 12.15 MB / 478.1 MB Notification: Performance of matching and sorting (n=254): time 0.1295/0.9127, allocations: 38.7 MB / 0.6668 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/0.9129, allocations: 209.3 kB / 0.667 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/0.9237, allocations: 4.38 MB / 0.6713 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001035/0.9248, allocations: 61.7 kB / 0.6713 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003693/0.9285, allocations: 3.424 MB / 0.6747 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002141/0.9307, allocations: 0.9454 MB / 0.6756 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00695/0.9377, allocations: 1.364 MB / 0.6769 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.9378, allocations: 309.1 kB / 0.6772 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006923/0.9448, allocations: 3.117 MB / 0.6803 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009751/0.9546, allocations: 7.04 MB / 0.6871 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01585/0.9705, allocations: 10.96 MB / 0.6978 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001638/0.9707, allocations: 44 kB / 0.6979 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.3352/1.306, allocations: 12.65 MB / 0.7102 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000147/1.306, allocations: 63.75 kB / 0.7103 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000309/1.306, allocations: 137.2 kB / 0.7104 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01057/1.317, allocations: 3.256 MB / 0.7136 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005937/1.323, allocations: 1.536 MB / 0.7151 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02129/1.344, allocations: 16.6 MB / 0.7313 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007185/1.352, allocations: 432 kB / 0.7317 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/1.353, allocations: 413.3 kB / 0.7321 GB, free: 169.4 MB / 0.5294 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.005657/1.359, allocations: 2.343 MB / 0.7344 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/1.36, allocations: 406.8 kB / 0.7348 GB, free: 167 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01388/1.374, allocations: 7.523 MB / 0.7421 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-05/1.374, allocations: 24 kB / 0.7422 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.788e-05/1.374, allocations: 12 kB / 0.7422 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-05/1.374, allocations: 11.95 kB / 0.7422 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03254/1.407, allocations: 15.2 MB / 0.757 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-05/1.407, allocations: 0 / 0.757 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/1.409, allocations: 379.5 kB / 0.7574 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008178/1.417, allocations: 2.934 MB / 0.7603 GB, free: 141 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008782/1.418, allocations: 44.88 kB / 0.7603 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01742/1.436, allocations: 14.77 MB / 0.7747 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.436, allocations: 7.594 kB / 0.7747 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0174/1.453, allocations: 11.47 MB / 0.7859 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/1.455, allocations: 451.8 kB / 0.7864 GB, free: 114.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001151/1.456, allocations: 39.94 kB / 0.7864 GB, free: 114.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002531/1.458, allocations: 191.7 kB / 0.7866 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007476/1.459, allocations: 145.7 kB / 0.7867 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002122/1.459, allocations: 69 kB / 0.7868 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004727/1.464, allocations: 2.742 MB / 0.7895 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.11e-07/1.464, allocations: 0 / 0.7895 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009112/1.473, allocations: 1.296 MB / 0.7907 GB, free: 109.6 MB / 0.5294 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.01905/1.492, allocations: 12.14 MB / 0.8026 GB, free: 97.44 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01862/1.511, allocations: 10.37 MB / 0.8127 GB, free: 87.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.511, allocations: 0 / 0.8127 GB, free: 87.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005061/1.516, allocations: 3.118 MB / 0.8158 GB, free: 83.96 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/1.52, allocations: 0.5176 MB / 0.8163 GB, free: 83.46 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1091/1.63, allocations: 68.19 MB / 0.8829 GB, free: 6.77 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005153/1.635, allocations: 3.658 MB / 0.8864 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005852/1.641, allocations: 2.169 MB / 0.8886 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004754/1.646, allocations: 2.22 MB / 0.8907 GB, free: 14.72 MB / 0.545 GB Notification: Performance of SimCode: time 1.984e-06/1.646, allocations: 0 / 0.8907 GB, free: 14.72 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4269/2.073, allocations: 98.24 MB / 0.9867 GB, free: 129.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/14.08, allocations: 15.8 kB / 0.9867 GB, free: 129.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches