Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001582/0.001587, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 94.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2871/0.2871, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004745/0.0004745, allocations: 16 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1181, allocations: 58.85 MB / 490.2 MB, free: 9.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.05737/0.1756, allocations: 37.15 MB / 0.515 GB, free: 4.086 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3528/0.5285, allocations: 9.468 MB / 0.5243 GB, free: 9.832 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00872/0.5372, allocations: 185.4 kB / 0.5244 GB, free: 9.832 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007214/0.5445, allocations: 1.813 MB / 0.5262 GB, free: 9.828 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02229/0.5668, allocations: 5.412 MB / 0.5315 GB, free: 9.738 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004496/0.5714, allocations: 0.8451 MB / 0.5323 GB, free: 9.73 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03648/0.6079, allocations: 14.64 MB / 0.5466 GB, free: 7.047 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008142/0.6161, allocations: 4.082 MB / 0.5506 GB, free: 5.828 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003323/0.6195, allocations: 1.224 MB / 0.5518 GB, free: 5.602 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004219/0.6237, allocations: 1.698 MB / 0.5534 GB, free: 4.906 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001416/0.6252, allocations: 169.6 kB / 0.5536 GB, free: 4.742 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003825/0.6291, allocations: 1.062 MB / 0.5546 GB, free: 3.867 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003056/0.6322, allocations: 1.832 MB / 0.5564 GB, free: 2.391 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.634, allocations: 0.9315 MB / 0.5573 GB, free: 1.875 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.645, allocations: 6.324 MB / 0.5635 GB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.6451, allocations: 2.75 kB / 0.5635 GB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.709e-06/0.6451, allocations: 4 kB / 0.5635 GB, free: 12.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003317/0.6454, allocations: 0 / 0.5635 GB, free: 12.36 MB / 378.7 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.02122/0.6667, allocations: 5.19 MB / 0.5686 GB, free: 7.574 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.6667, allocations: 8.031 kB / 0.5686 GB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1786/0.8453, allocations: 8.474 MB / 0.5769 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01178/0.8571, allocations: 3.599 MB / 0.5804 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003389/0.8575, allocations: 258.7 kB / 0.5806 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001891/0.8594, allocations: 354.1 kB / 0.581 GB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03715/0.8966, allocations: 12.46 MB / 0.5931 GB, free: 388 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002341/0.8969, allocations: 51.53 kB / 0.5932 GB, free: 336 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001098/0.898, allocations: 169.2 kB / 0.5933 GB, free: 212 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007247/0.9052, allocations: 2.382 MB / 0.5957 GB, free: 13.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03729/0.9426, allocations: 10.87 MB / 0.6063 GB, free: 2.949 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09633/1.039, allocations: 48.96 MB / 0.6541 GB, free: 0.8359 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02755/1.067, allocations: 5.958 MB / 0.6599 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03429/1.101, allocations: 13.13 MB / 0.6728 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.929e-05/1.101, allocations: 51.88 kB / 0.6728 GB, free: 13.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=193): time 6.622e-06/1.101, allocations: 3.938 kB / 0.6728 GB, free: 13.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=254): time 0.2127/1.314, allocations: 39.67 MB / 0.7115 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/1.314, allocations: 201.9 kB / 0.7117 GB, free: 5.184 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/1.324, allocations: 4.627 MB / 0.7163 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007483/1.325, allocations: 61.7 kB / 0.7163 GB, free: 484 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.3312/1.656, allocations: 3.332 MB / 0.7196 GB, free: 182.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001764/1.658, allocations: 0.955 MB / 0.7205 GB, free: 182.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008291/1.659, allocations: 134.5 kB / 0.7206 GB, free: 182.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005221/1.659, allocations: 0.5966 MB / 0.7212 GB, free: 182 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009102/1.668, allocations: 3.088 MB / 0.7242 GB, free: 182 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01265/1.681, allocations: 6.992 MB / 0.7311 GB, free: 175.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01226/1.693, allocations: 4.528 MB / 0.7355 GB, free: 173.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002505/1.694, allocations: 40.45 kB / 0.7355 GB, free: 173.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.04176/1.735, allocations: 12.47 MB / 0.7477 GB, free: 169.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/1.736, allocations: 62.47 kB / 0.7478 GB, free: 169.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001846/1.736, allocations: 138.7 kB / 0.7479 GB, free: 169.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0161/1.752, allocations: 3.266 MB / 0.7511 GB, free: 169.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009329/1.761, allocations: 1.537 MB / 0.7526 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03567/1.797, allocations: 16.07 MB / 0.7683 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008156/1.805, allocations: 440.2 kB / 0.7687 GB, free: 155.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.807, allocations: 405.2 kB / 0.7691 GB, free: 154.8 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,54.7%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005557/1.812, allocations: 2.349 MB / 0.7714 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/1.813, allocations: 410.7 kB / 0.7718 GB, free: 152 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02527/1.839, allocations: 7.509 MB / 0.7791 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.166e-05/1.839, allocations: 30.06 kB / 0.7791 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/1.839, allocations: 9.859 kB / 0.7791 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.296e-05/1.839, allocations: 11.95 kB / 0.7792 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0462/1.885, allocations: 15.21 MB / 0.794 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.15e-05/1.885, allocations: 0 / 0.794 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003696/1.889, allocations: 387.4 kB / 0.7944 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01546/1.904, allocations: 2.932 MB / 0.7972 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006149/1.905, allocations: 42.92 kB / 0.7973 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03333/1.938, allocations: 14.3 MB / 0.8112 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.939, allocations: 0 / 0.8112 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03351/1.972, allocations: 11.54 MB / 0.8225 GB, free: 99.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003393/1.976, allocations: 0.9369 MB / 0.8234 GB, free: 98.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001392/1.977, allocations: 41.33 kB / 0.8235 GB, free: 98.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004597/1.982, allocations: 195.7 kB / 0.8237 GB, free: 98.59 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001319/1.983, allocations: 141.8 kB / 0.8238 GB, free: 98.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000426/1.983, allocations: 65.48 kB / 0.8239 GB, free: 98.39 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007172/1.991, allocations: 2.935 MB / 0.8267 GB, free: 95.45 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.52e-07/1.991, allocations: 7.172 kB / 0.8267 GB, free: 95.45 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00842/1.999, allocations: 1.333 MB / 0.828 GB, free: 94.12 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,61.1%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001067/2, allocations: 201.9 kB / 0.8282 GB, free: 93.92 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01886/2.019, allocations: 7.788 MB / 0.8358 GB, free: 86.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/2.019, allocations: 0 / 0.8358 GB, free: 86.15 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008216/2.027, allocations: 3.114 MB / 0.8389 GB, free: 83.03 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003966/2.031, allocations: 471.8 kB / 0.8393 GB, free: 82.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03078/2.062, allocations: 14.17 MB / 0.8532 GB, free: 68.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008766/2.071, allocations: 3.775 MB / 0.8568 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002368/2.073, allocations: 335.4 kB / 0.8572 GB, free: 64.24 MB / 0.5105 GB Notification: Performance of SimCode: time 1.884e-06/2.073, allocations: 0 / 0.8572 GB, free: 64.24 MB / 0.5105 GB Notification: Performance of Templates: time 0.5033/2.577, allocations: 88.82 MB / 0.9439 GB, free: 147.6 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches