Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR.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.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointSSR",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.001186/0.001186, allocations: 104.1 kB / 17.63 MB, free: 5.5 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.001184/0.001185, allocations: 188 kB / 18.56 MB, free: 4.578 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.26 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.2078/0.2078, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002341/0.002341, allocations: 68.3 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1214, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSR): time 0.01019/0.1316, allocations: 9.592 MB / 479 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006342/0.138, allocations: 3.386 MB / 482.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.1392, allocations: 51.88 kB / 482.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004689/0.144, allocations: 2.605 MB / 485 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001838/0.1459, allocations: 0.5985 MB / 485.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002075/0.148, allocations: 0.7133 MB / 486.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002272/0.1503, allocations: 1.57 MB / 487.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003951/0.1542, allocations: 3.294 MB / 491.2 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.1558, allocations: 0.9972 MB / 492.2 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001871/0.1577, allocations: 1.309 MB / 493.5 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006237/0.1583, allocations: 280 kB / 493.8 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.1604, allocations: 0.9869 MB / 494.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001326/0.1617, allocations: 1.169 MB / 495.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.1632, allocations: 1.372 MB / 497.3 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004403/0.1676, allocations: 4.549 MB / 0.4901 GB, free: 13.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1676, allocations: 4 kB / 0.4901 GB, free: 13.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1676, allocations: 0 / 0.4901 GB, free: 13.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.377e-05/0.1677, allocations: 0 / 0.4901 GB, free: 13.66 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.005916/0.1737, allocations: 2.921 MB / 0.4929 GB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.1737, allocations: 12.03 kB / 0.4929 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005414/0.1743, allocations: 419.1 kB / 0.4933 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.1755, allocations: 365.1 kB / 0.4937 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002346/0.1779, allocations: 1.301 MB / 0.495 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.178, allocations: 164.2 kB / 0.4951 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005389/0.1786, allocations: 212 kB / 0.4953 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/0.1953, allocations: 6.48 MB / 0.5016 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-05/0.1954, allocations: 11.88 kB / 0.5017 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002457/0.1957, allocations: 99.94 kB / 0.5017 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001119/0.1968, allocations: 0.8085 MB / 0.5025 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2356/0.4324, allocations: 5.462 MB / 0.5079 GB, free: 46.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03777/0.4702, allocations: 19.09 MB / 0.5265 GB, free: 33.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01212/0.4824, allocations: 1.811 MB / 0.5283 GB, free: 32.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.4837, allocations: 0.6883 MB / 0.529 GB, free: 32.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006365/0.4901, allocations: 4.705 MB / 0.5335 GB, free: 28.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.4902, allocations: 46.97 kB / 0.5336 GB, free: 28.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.976e-06/0.4902, allocations: 3.938 kB / 0.5336 GB, free: 28.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=110): time 0.03758/0.5278, allocations: 8.826 MB / 0.5422 GB, free: 20.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.5279, allocations: 72.33 kB / 0.5423 GB, free: 20 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.53, allocations: 1.839 MB / 0.5441 GB, free: 18.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.5301, allocations: 45.7 kB / 0.5441 GB, free: 18.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005624/0.5307, allocations: 1.531 MB / 0.5456 GB, free: 16.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/0.5309, allocations: 412.7 kB / 0.546 GB, free: 16.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000587/0.5315, allocations: 0.5441 MB / 0.5465 GB, free: 15.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.72e-05/0.5316, allocations: 301.1 kB / 0.5468 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.5328, allocations: 1.017 MB / 0.5478 GB, free: 14.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001745/0.5345, allocations: 2.525 MB / 0.5503 GB, free: 11.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003283/0.5378, allocations: 3.813 MB / 0.554 GB, free: 6.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-05/0.5379, allocations: 16 kB / 0.554 GB, free: 6.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=352) (initialization): time 0.004276/0.5422, allocations: 3.535 MB / 0.5575 GB, free: 2.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/0.5422, allocations: 24 kB / 0.5575 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.933e-05/0.5423, allocations: 56.91 kB / 0.5576 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.043e-05/0.5423, allocations: 68 kB / 0.5576 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.5443, allocations: 0.6668 MB / 0.5583 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-05/0.5444, allocations: 103.6 kB / 0.5584 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.5461, allocations: 151.8 kB / 0.5585 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.5463, allocations: 156 kB / 0.5587 GB, free: 1.715 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 240 * Number of states: 0 () * Number of discrete variables: 38 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,jointSSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (352): * Single equations (assignments): 352 * 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.001301/0.5476, allocations: 1.141 MB / 0.5598 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/0.5478, allocations: 169.8 kB / 0.5599 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/0.5505, allocations: 1.754 MB / 0.5617 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.5505, allocations: 12 kB / 0.5617 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.5506, allocations: 0 / 0.5617 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.5506, allocations: 11.97 kB / 0.5617 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008368/0.5589, allocations: 5.587 MB / 0.5671 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.559, allocations: 12.19 kB / 0.5671 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008501/0.5598, allocations: 215.6 kB / 0.5674 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.838e-05/0.5599, allocations: 16 kB / 0.5674 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.726e-05/0.5599, allocations: 38.7 kB / 0.5674 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.825e-05/0.56, allocations: 19.94 kB / 0.5674 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-05/0.56, allocations: 19.94 kB / 0.5674 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.5621, allocations: 1.681 MB / 0.5691 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00038/0.5625, allocations: 254.8 kB / 0.5693 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/0.5627, allocations: 31.98 kB / 0.5694 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006653/0.5634, allocations: 39.98 kB / 0.5694 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.5635, allocations: 100.2 kB / 0.5695 GB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-05/0.5636, allocations: 51.94 kB / 0.5695 GB, free: 6.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001517/0.5651, allocations: 1.207 MB / 0.5707 GB, free: 4.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5651, allocations: 0 / 0.5707 GB, free: 4.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002113/0.5673, allocations: 0.496 MB / 0.5712 GB, free: 4.438 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (111): * Single equations (assignments): 111 * 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.002599/0.5699, allocations: 2.304 MB / 0.5735 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00385/0.5737, allocations: 2.459 MB / 0.5759 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/0.5738, allocations: 0 / 0.5759 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008315/0.5746, allocations: 0.5992 MB / 0.5764 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.5761, allocations: 263.7 kB / 0.5767 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03104/0.6071, allocations: 22.74 MB / 0.5989 GB, free: 4.984 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/0.6096, allocations: 2.075 MB / 0.6009 GB, free: 2.875 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002132/0.6118, allocations: 0.7266 MB / 0.6016 GB, free: 2.145 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001469/0.6133, allocations: 0.9679 MB / 0.6026 GB, free: 1.176 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6133, allocations: 0 / 0.6026 GB, free: 1.176 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07222/0.6855, allocations: 38.52 MB / 0.6402 GB, free: 10.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/9.275, allocations: 8.047 kB / 0.6402 GB, free: 10.86 MB / 478.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointSSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointSSR/JointSSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches