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: translateModel(ModelicaTest.MultiBody.Joints.JointUPS2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2") translateModel(ModelicaTest.MultiBody.Joints.JointUPS2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 101.5 kB / 17.85 MB, free: 5.664 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.001793/0.001793, allocations: 194 kB / 18.76 MB, free: 4.746 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.642/1.642, allocations: 222.9 MB / 242.4 MB, free: 15.43 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.2183/0.2183, allocations: 44.18 MB / 336.8 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 60.64 kB / 408.3 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1156, allocations: 60.83 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.04023/0.1558, allocations: 43.41 MB / 0.5006 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2394/0.3953, allocations: 9.641 MB / 0.51 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01028/0.4056, allocations: 188.2 kB / 0.5102 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006259/0.4119, allocations: 2.736 MB / 0.5128 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005854/0.4178, allocations: 1.907 MB / 0.5147 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002271/0.4201, allocations: 0.9342 MB / 0.5156 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01047/0.4306, allocations: 7.428 MB / 0.5229 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004734/0.4353, allocations: 3.346 MB / 0.5261 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003242/0.4386, allocations: 1.559 MB / 0.5277 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003523/0.4422, allocations: 2.602 MB / 0.5302 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007337/0.4429, allocations: 251.6 kB / 0.5304 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002746/0.4457, allocations: 1.39 MB / 0.5318 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001881/0.4476, allocations: 2.114 MB / 0.5339 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002493/0.4501, allocations: 2.398 MB / 0.5362 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00705/0.4571, allocations: 6.283 MB / 0.5423 GB, free: 12.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.4572, allocations: 0 / 0.5423 GB, free: 12.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4572, allocations: 4 kB / 0.5423 GB, free: 12.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002543/0.4574, allocations: 0 / 0.5423 GB, free: 12.89 MB / 398.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.01341/0.4709, allocations: 5.755 MB / 0.548 GB, free: 7.184 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.4709, allocations: 15.97 kB / 0.548 GB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01535/0.4863, allocations: 2.599 MB / 0.5505 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007679/0.494, allocations: 3.141 MB / 0.5536 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002796/0.4943, allocations: 257.5 kB / 0.5538 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001163/0.4955, allocations: 355.9 kB / 0.5542 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02413/0.5196, allocations: 12.36 MB / 0.5662 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002826/0.52, allocations: 59.52 kB / 0.5663 GB, free: 3.785 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00138/0.5214, allocations: 168.5 kB / 0.5664 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004162/0.5255, allocations: 2.376 MB / 0.5688 GB, free: 1.301 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02333/0.5489, allocations: 10.83 MB / 0.5793 GB, free: 6.445 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06808/0.617, allocations: 48.79 MB / 0.627 GB, free: 4.52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01711/0.6342, allocations: 6.044 MB / 0.6329 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004683/0.6389, allocations: 3.311 MB / 0.6361 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02247/0.6614, allocations: 13.51 MB / 0.6493 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.023e-05/0.6615, allocations: 63.75 kB / 0.6494 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=204): time 5.5e-06/0.6615, allocations: 0 / 0.6494 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of matching and sorting (n=265): time 0.1197/0.7812, allocations: 36.28 MB / 0.6848 GB, free: 8.711 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001806/0.7815, allocations: 213.8 kB / 0.685 GB, free: 8.461 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009057/0.7905, allocations: 4.369 MB / 0.6893 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000859/0.7914, allocations: 61.7 kB / 0.6894 GB, free: 4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002902/0.7944, allocations: 3.375 MB / 0.6927 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001698/0.7961, allocations: 0.9862 MB / 0.6936 GB, free: 15.65 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004311/0.8004, allocations: 1.428 MB / 0.695 GB, free: 14.21 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.714e-05/0.8005, allocations: 305.1 kB / 0.6953 GB, free: 13.91 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006024/0.8066, allocations: 3.281 MB / 0.6985 GB, free: 10.63 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009014/0.8156, allocations: 7.2 MB / 0.7055 GB, free: 1.508 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2604/1.076, allocations: 11.24 MB / 0.7165 GB, free: 191 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/1.076, allocations: 39 kB / 0.7166 GB, free: 191 MB / 0.545 GB Notification: Performance of matching and sorting (n=919) (initialization): time 0.03077/1.107, allocations: 13.27 MB / 0.7295 GB, free: 186.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/1.107, allocations: 65.89 kB / 0.7296 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001558/1.107, allocations: 136.2 kB / 0.7297 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009503/1.117, allocations: 3.404 MB / 0.733 GB, free: 186.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005354/1.122, allocations: 1.573 MB / 0.7346 GB, free: 186 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02195/1.144, allocations: 16.37 MB / 0.7505 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00582/1.15, allocations: 438.4 kB / 0.751 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/1.151, allocations: 412 kB / 0.7514 GB, free: 177.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * 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 (841): * Single equations (assignments): 837 * 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 {(5,50,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004819/1.156, allocations: 2.34 MB / 0.7536 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/1.158, allocations: 411.9 kB / 0.754 GB, free: 175.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0152/1.173, allocations: 7.996 MB / 0.7618 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.43e-05/1.173, allocations: 28 kB / 0.7619 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.817e-05/1.173, allocations: 12 kB / 0.7619 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.487e-05/1.173, allocations: 19.89 kB / 0.7619 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02758/1.2, allocations: 15.53 MB / 0.7771 GB, free: 151.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.011e-05/1.201, allocations: 5.594 kB / 0.7771 GB, free: 151.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001997/1.203, allocations: 387.3 kB / 0.7774 GB, free: 151.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008619/1.211, allocations: 3.165 MB / 0.7805 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004874/1.212, allocations: 48 kB / 0.7806 GB, free: 147.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02909/1.241, allocations: 14.65 MB / 0.7949 GB, free: 133.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/1.241, allocations: 0 / 0.7949 GB, free: 133.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03055/1.271, allocations: 12.14 MB / 0.8067 GB, free: 121.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001654/1.273, allocations: 451.7 kB / 0.8072 GB, free: 120.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002004/1.275, allocations: 40 kB / 0.8072 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004407/1.28, allocations: 187.7 kB / 0.8074 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/1.281, allocations: 158.2 kB / 0.8075 GB, free: 120.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005819/1.281, allocations: 64 kB / 0.8076 GB, free: 120.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006515/1.288, allocations: 2.737 MB / 0.8103 GB, free: 117.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.1e-07/1.288, allocations: 0 / 0.8103 GB, free: 117.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007387/1.295, allocations: 1.362 MB / 0.8116 GB, free: 116 MB / 0.545 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 (197): * Single equations (assignments): 193 * 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 {(5,44,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007578/1.296, allocations: 187.7 kB / 0.8118 GB, free: 115.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0108/1.307, allocations: 8.196 MB / 0.8198 GB, free: 107.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.307, allocations: 0 / 0.8198 GB, free: 107.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004307/1.311, allocations: 3.317 MB / 0.823 GB, free: 104.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/1.315, allocations: 483.8 kB / 0.8235 GB, free: 103.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01954/1.335, allocations: 14.73 MB / 0.8379 GB, free: 89.13 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002993/1.338, allocations: 3.658 MB / 0.8415 GB, free: 85.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001397/1.339, allocations: 331.4 kB / 0.8418 GB, free: 85.12 MB / 0.545 GB Notification: Performance of SimCode: time 2.154e-06/1.339, allocations: 0 / 0.8418 GB, free: 85.12 MB / 0.545 GB Notification: Performance of Templates: time 0.3375/1.677, allocations: 92.26 MB / 0.9319 GB, free: 183.5 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/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