Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP",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.001085/0.001085, allocations: 107.4 kB / 17.21 MB, free: 6.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.001203/0.001203, allocations: 194 kB / 18.12 MB, free: 5.383 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.305/1.305, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2043/0.2043, allocations: 44.17 MB / 336.1 MB, free: 3.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.03 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1064, allocations: 60.83 MB / 468.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.0413/0.1477, allocations: 45.8 MB / 0.5024 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2168/0.3645, allocations: 9.107 MB / 0.5113 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00774/0.3723, allocations: 190.2 kB / 0.5115 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005684/0.378, allocations: 3.299 MB / 0.5147 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002052/0.3801, allocations: 0.747 MB / 0.5154 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.3817, allocations: 0.5939 MB / 0.516 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003549/0.3852, allocations: 3.268 MB / 0.5192 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004471/0.3897, allocations: 3.893 MB / 0.523 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001997/0.3917, allocations: 1.114 MB / 0.5241 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.3943, allocations: 1.708 MB / 0.5257 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008189/0.3951, allocations: 246.1 kB / 0.526 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001975/0.3971, allocations: 0.8789 MB / 0.5268 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001592/0.3987, allocations: 1.435 MB / 0.5282 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001708/0.4004, allocations: 1.657 MB / 0.5298 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003815/0.4042, allocations: 5.488 MB / 0.5352 GB, free: 15.99 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.4043, allocations: 7.984 kB / 0.5352 GB, free: 15.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4043, allocations: 0 / 0.5352 GB, free: 15.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.478e-05/0.4044, allocations: 0 / 0.5352 GB, free: 15.98 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: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.007437/0.4118, allocations: 3.748 MB / 0.5389 GB, free: 13.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.4119, allocations: 10.62 kB / 0.5389 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006829/0.4126, allocations: 0.5302 MB / 0.5394 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002268/0.4148, allocations: 0.5847 MB / 0.54 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.4181, allocations: 1.732 MB / 0.5417 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.4182, allocations: 209.2 kB / 0.5419 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004354/0.4187, allocations: 281.1 kB / 0.5421 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01539/0.4341, allocations: 7.615 MB / 0.5496 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/0.4342, allocations: 15.88 kB / 0.5496 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009431/0.4352, allocations: 120.4 kB / 0.5497 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001805/0.437, allocations: 1.104 MB / 0.5508 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01444/0.4515, allocations: 6.177 MB / 0.5568 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03443/0.4859, allocations: 22.92 MB / 0.5792 GB, free: 5.109 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006117/0.4921, allocations: 1.866 MB / 0.581 GB, free: 3.238 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.4934, allocations: 0.8222 MB / 0.5818 GB, free: 2.418 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008421/0.5018, allocations: 5.786 MB / 0.5875 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.5019, allocations: 39.22 kB / 0.5875 GB, free: 12.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=75): time 2.885e-06/0.5019, allocations: 0 / 0.5875 GB, free: 12.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=94): time 0.01502/0.5169, allocations: 4.412 MB / 0.5918 GB, free: 7.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.517, allocations: 64.41 kB / 0.5919 GB, free: 7.586 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004058/0.5211, allocations: 2.279 MB / 0.5941 GB, free: 5.273 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000149/0.5213, allocations: 41.7 kB / 0.5941 GB, free: 5.227 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001524/0.5228, allocations: 2.037 MB / 0.5961 GB, free: 3.184 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004882/0.5233, allocations: 382.6 kB / 0.5965 GB, free: 2.812 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.5244, allocations: 0.6905 MB / 0.5972 GB, free: 2.113 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.5246, allocations: 305.1 kB / 0.5975 GB, free: 1.812 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.5261, allocations: 0.8889 MB / 0.5983 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003329/0.5294, allocations: 2.973 MB / 0.6012 GB, free: 12.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005765/0.5352, allocations: 4.202 MB / 0.6053 GB, free: 7.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.645e-05/0.5353, allocations: 20 kB / 0.6053 GB, free: 7.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006685/0.542, allocations: 3.762 MB / 0.609 GB, free: 3.891 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.859e-05/0.5421, allocations: 39.94 kB / 0.6091 GB, free: 3.852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001027/0.5422, allocations: 72 kB / 0.6091 GB, free: 3.781 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001142/0.5423, allocations: 100.8 kB / 0.6092 GB, free: 3.684 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/0.5445, allocations: 0.7876 MB / 0.61 GB, free: 2.895 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001328/0.5447, allocations: 147.4 kB / 0.6101 GB, free: 2.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/0.5468, allocations: 155.9 kB / 0.6103 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002967/0.5471, allocations: 196 kB / 0.6105 GB, free: 2.406 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 50 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointUSP.prismatic.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[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],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 436 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0024/0.5495, allocations: 1.418 MB / 0.6119 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000418/0.55, allocations: 201.4 kB / 0.612 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.5521, allocations: 1.148 MB / 0.6132 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.5521, allocations: 8 kB / 0.6132 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.5521, allocations: 4 kB / 0.6132 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.5521, allocations: 11.92 kB / 0.6132 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008858/0.561, allocations: 5.165 MB / 0.6182 GB, free: 10.15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.283e-05/0.5611, allocations: 16 kB / 0.6182 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007012/0.5618, allocations: 211.6 kB / 0.6185 GB, free: 9.926 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-05/0.5618, allocations: 24 kB / 0.6185 GB, free: 9.902 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.125e-05/0.5619, allocations: 40 kB / 0.6185 GB, free: 9.863 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-05/0.5619, allocations: 35.86 kB / 0.6185 GB, free: 9.828 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/0.5619, allocations: 19.94 kB / 0.6186 GB, free: 9.809 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.564, allocations: 1.682 MB / 0.6202 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000566/0.5646, allocations: 294.3 kB / 0.6205 GB, free: 7.586 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003448/0.5649, allocations: 43.98 kB / 0.6205 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008057/0.5657, allocations: 35.98 kB / 0.6206 GB, free: 7.508 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.5659, allocations: 123.9 kB / 0.6207 GB, free: 7.387 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.841e-05/0.566, allocations: 52 kB / 0.6207 GB, free: 7.336 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.5686, allocations: 1.477 MB / 0.6222 GB, free: 5.844 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5686, allocations: 0 / 0.6222 GB, free: 5.844 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002889/0.5715, allocations: 0.5742 MB / 0.6227 GB, free: 5.27 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 71 * Number of states: 0 () * 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 (118): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002762/0.5743, allocations: 2.323 MB / 0.625 GB, free: 2.703 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003854/0.5782, allocations: 2.121 MB / 0.6271 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.568e-05/0.5782, allocations: 8 kB / 0.6271 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007891/0.579, allocations: 0.518 MB / 0.6276 GB, free: 80 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/0.5814, allocations: 336.4 kB / 0.6279 GB, free: 15.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04737/0.6288, allocations: 27.8 MB / 0.6551 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003585/0.6325, allocations: 2.46 MB / 0.6575 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002769/0.6353, allocations: 0.9139 MB / 0.6584 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00191/0.6372, allocations: 1.241 MB / 0.6596 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of SimCode: time 1.242e-06/0.6372, allocations: 0 / 0.6596 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07248/0.7097, allocations: 41.21 MB / 0.6998 GB, free: 2.355 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/0.7099, allocations: 188.9 kB / 0.7 GB, free: 2.102 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.231/3.941, allocations: 0 / 0.7 GB, free: 2.102 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches