Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.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.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 110.4 kB / 17.78 MB, free: 5.293 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.001323/0.001323, allocations: 187 kB / 18.71 MB, free: 4.363 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2304/0.2304, allocations: 44.19 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 60.09 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4662/0.4673, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01626/0.4836, allocations: 13.26 MB / 0.5319 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01264/0.4963, allocations: 4.851 MB / 0.5366 GB, free: 6.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003966/0.5003, allocations: 80.38 kB / 0.5367 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008205/0.5085, allocations: 3.979 MB / 0.5406 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007704/0.5163, allocations: 2.202 MB / 0.5427 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003456/0.5198, allocations: 1.187 MB / 0.5439 GB, free: 1.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.5304, allocations: 5.722 MB / 0.5495 GB, free: 12.69 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007649/0.5381, allocations: 5.184 MB / 0.5545 GB, free: 7.438 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004158/0.5423, allocations: 2.185 MB / 0.5567 GB, free: 5.246 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004611/0.547, allocations: 2.96 MB / 0.5595 GB, free: 2.277 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001309/0.5483, allocations: 0.5039 MB / 0.56 GB, free: 1.773 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.5517, allocations: 1.654 MB / 0.5617 GB, free: 120 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002761/0.5545, allocations: 2.689 MB / 0.5643 GB, free: 13.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004126/0.5586, allocations: 3.018 MB / 0.5672 GB, free: 10.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01209/0.5707, allocations: 9.952 MB / 0.5769 GB, free: 412 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.5708, allocations: 0 / 0.5769 GB, free: 412 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5708, allocations: 0 / 0.5769 GB, free: 412 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003387/0.5711, allocations: 8 kB / 0.577 GB, free: 404 kB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.01683/0.588, allocations: 6.514 MB / 0.5833 GB, free: 9.805 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.588, allocations: 12.03 kB / 0.5833 GB, free: 9.793 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01795/0.606, allocations: 2.712 MB / 0.586 GB, free: 7.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009206/0.6152, allocations: 3.697 MB / 0.5896 GB, free: 3.312 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003192/0.6156, allocations: 350.2 kB / 0.5899 GB, free: 2.961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001609/0.6172, allocations: 435.7 kB / 0.5903 GB, free: 2.535 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02624/0.6434, allocations: 13.85 MB / 0.6039 GB, free: 3.828 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001499/0.6436, allocations: 47.53 kB / 0.6039 GB, free: 3.781 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006119/0.6442, allocations: 203.8 kB / 0.6041 GB, free: 3.582 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003552/0.6478, allocations: 2.417 MB / 0.6065 GB, free: 1.164 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02415/0.672, allocations: 11.76 MB / 0.6179 GB, free: 5.395 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07128/0.7433, allocations: 51.54 MB / 0.6683 GB, free: 388 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01252/0.7558, allocations: 4.745 MB / 0.6729 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003975/0.7598, allocations: 2.952 MB / 0.6758 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01881/0.7787, allocations: 12.86 MB / 0.6883 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.7787, allocations: 59.81 kB / 0.6884 GB, free: 11.03 MB / 0.545 GB Notification: Performance of pre-optimization done (n=197): time 4.619e-06/0.7788, allocations: 0 / 0.6884 GB, free: 11.03 MB / 0.545 GB Notification: Performance of matching and sorting (n=248): time 0.4705/1.249, allocations: 43.39 MB / 0.7308 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/1.249, allocations: 234 kB / 0.731 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009082/1.259, allocations: 4.771 MB / 0.7356 GB, free: 162 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000775/1.259, allocations: 64.95 kB / 0.7357 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002077/1.261, allocations: 3.84 MB / 0.7395 GB, free: 159 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001397/1.263, allocations: 0.9391 MB / 0.7404 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002015/1.265, allocations: 1.512 MB / 0.7419 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.706e-05/1.265, allocations: 309.1 kB / 0.7421 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004261/1.269, allocations: 3.439 MB / 0.7455 GB, free: 156 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005942/1.275, allocations: 7.708 MB / 0.753 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/1.287, allocations: 11.87 MB / 0.7646 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000142/1.287, allocations: 40 kB / 0.7647 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=967) (initialization): time 0.02725/1.314, allocations: 14.48 MB / 0.7788 GB, free: 121.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.108e-05/1.314, allocations: 68 kB / 0.7789 GB, free: 121.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/1.315, allocations: 148 kB / 0.779 GB, free: 121.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/1.326, allocations: 4.024 MB / 0.7829 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005649/1.331, allocations: 1.63 MB / 0.7845 GB, free: 116 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02289/1.354, allocations: 19.84 MB / 0.8039 GB, free: 96.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007/1.361, allocations: 467.2 kB / 0.8044 GB, free: 95.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.363, allocations: 428 kB / 0.8048 GB, free: 95.16 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (884): * Single equations (assignments): 880 * 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 {(2,58,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00484/1.368, allocations: 2.658 MB / 0.8074 GB, free: 92.49 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001165/1.369, allocations: 427.3 kB / 0.8078 GB, free: 92.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01612/1.385, allocations: 8.643 MB / 0.8162 GB, free: 83.41 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.675e-05/1.385, allocations: 31.36 kB / 0.8162 GB, free: 83.38 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/1.385, allocations: 12 kB / 0.8162 GB, free: 83.37 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.631e-05/1.385, allocations: 15.89 kB / 0.8163 GB, free: 83.36 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03089/1.416, allocations: 17.85 MB / 0.8337 GB, free: 65.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/1.416, allocations: 4 kB / 0.8337 GB, free: 65.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001942/1.418, allocations: 395.4 kB / 0.8341 GB, free: 65.12 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01112/1.429, allocations: 4.074 MB / 0.838 GB, free: 61.04 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005105/1.43, allocations: 43.98 kB / 0.8381 GB, free: 61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02095/1.451, allocations: 18.21 MB / 0.8559 GB, free: 42.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.451, allocations: 4 kB / 0.8559 GB, free: 42.65 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02105/1.472, allocations: 13.22 MB / 0.8688 GB, free: 29.39 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/1.474, allocations: 475.4 kB / 0.8692 GB, free: 28.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007075/1.474, allocations: 36 kB / 0.8693 GB, free: 28.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002158/1.477, allocations: 215.7 kB / 0.8695 GB, free: 28.66 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005997/1.477, allocations: 151.2 kB / 0.8696 GB, free: 28.51 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/1.477, allocations: 67.98 kB / 0.8697 GB, free: 28.45 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003621/1.481, allocations: 2.985 MB / 0.8726 GB, free: 25.46 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/1.481, allocations: 0 / 0.8726 GB, free: 25.46 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006311/1.487, allocations: 1.488 MB / 0.8741 GB, free: 23.99 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * 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 (173): * Single equations (assignments): 169 * 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 {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006332/1.488, allocations: 222.5 kB / 0.8743 GB, free: 23.77 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01016/1.498, allocations: 8.278 MB / 0.8824 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/1.498, allocations: 0 / 0.8824 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003529/1.502, allocations: 3.116 MB / 0.8854 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003225/1.505, allocations: 0.534 MB / 0.8859 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02024/1.525, allocations: 12.85 MB / 0.8985 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004872/1.53, allocations: 4.103 MB / 0.9025 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00508/1.535, allocations: 2.191 MB / 0.9046 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009424/1.536, allocations: 283.4 kB / 0.9049 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of SimCode: time 8.42e-07/1.536, allocations: 0 / 0.9049 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of Templates: time 0.3885/1.925, allocations: 61.48 MB / 0.9649 GB, free: 195.1 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP2/JointUSP2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches