Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.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.Cylindrical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Cylindrical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical",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.001734/0.001734, allocations: 109.9 kB / 17.32 MB, free: 6.035 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.001826/0.001826, allocations: 193.3 kB / 18.25 MB, free: 5.125 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.359/1.359, allocations: 222.9 MB / 241.9 MB, free: 13.74 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.214/0.214, allocations: 44.17 MB / 336.2 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.41 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1239, allocations: 60.84 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Cylindrical): time 0.03697/0.1609, allocations: 37.94 MB / 0.4949 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02159/0.1825, allocations: 8.14 MB / 0.5028 GB, free: 368 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009107/0.1917, allocations: 155.6 kB / 0.503 GB, free: 212 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2673/0.459, allocations: 1.72 MB / 0.5047 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005814/0.465, allocations: 1.719 MB / 0.5063 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.4667, allocations: 0.5286 MB / 0.5069 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007268/0.474, allocations: 3.88 MB / 0.5106 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005072/0.4791, allocations: 2.821 MB / 0.5134 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003951/0.4831, allocations: 1.38 MB / 0.5148 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003836/0.487, allocations: 2.136 MB / 0.5168 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001088/0.4881, allocations: 291.5 kB / 0.5171 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002591/0.4907, allocations: 1.025 MB / 0.5181 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002057/0.4927, allocations: 1.789 MB / 0.5199 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002536/0.4953, allocations: 2.142 MB / 0.522 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008663/0.504, allocations: 6.707 MB / 0.5285 GB, free: 5.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.504, allocations: 0 / 0.5285 GB, free: 5.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.504, allocations: 0 / 0.5285 GB, free: 5.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000234/0.5043, allocations: 1.781 kB / 0.5285 GB, free: 5.031 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: 1641 * Number of variables: 1641 Notification: Performance of Generate backend data structure: time 0.008931/0.5132, allocations: 4.562 MB / 0.533 GB, free: 1.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.5133, allocations: 10.06 kB / 0.533 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009977/0.5143, allocations: 0.7654 MB / 0.5337 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009944/0.5242, allocations: 3.124 MB / 0.5368 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005183/0.5294, allocations: 2.428 MB / 0.5391 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.5296, allocations: 215.7 kB / 0.5393 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006476/0.5303, allocations: 295.4 kB / 0.5396 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.5495, allocations: 11.11 MB / 0.5505 GB, free: 3.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001655/0.5497, allocations: 27.62 kB / 0.5505 GB, free: 3.215 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001026/0.5508, allocations: 134 kB / 0.5506 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004904/0.5557, allocations: 2.624 MB / 0.5532 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02283/0.5785, allocations: 10.38 MB / 0.5633 GB, free: 6.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06133/0.6399, allocations: 36.69 MB / 0.5992 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.6511, allocations: 4.574 MB / 0.6036 GB, free: 12.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003742/0.6549, allocations: 2.404 MB / 0.606 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001407/0.6563, allocations: 1.317 MB / 0.6073 GB, free: 8.469 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/0.6564, allocations: 56.5 kB / 0.6073 GB, free: 8.406 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 5.371e-06/0.6564, allocations: 0 / 0.6073 GB, free: 8.406 MB / 462.1 MB Notification: Performance of matching and sorting (n=254): time 0.04463/0.701, allocations: 17.59 MB / 0.6245 GB, free: 6.789 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.7011, allocations: 73.41 kB / 0.6246 GB, free: 6.703 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004941/0.7061, allocations: 2.739 MB / 0.6272 GB, free: 3.949 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002464/0.7063, allocations: 68.52 kB / 0.6273 GB, free: 3.879 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/0.7085, allocations: 2.774 MB / 0.63 GB, free: 1.102 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001154/0.7097, allocations: 0.9183 MB / 0.6309 GB, free: 196 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001888/0.7116, allocations: 1.064 MB / 0.6319 GB, free: 15.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.7117, allocations: 305.1 kB / 0.6322 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003683/0.7154, allocations: 2.302 MB / 0.6345 GB, free: 12.52 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005719/0.7212, allocations: 5.22 MB / 0.6396 GB, free: 5.926 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/0.7314, allocations: 8.254 MB / 0.6476 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001168/0.7315, allocations: 31.94 kB / 0.6477 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01523/0.7468, allocations: 8.277 MB / 0.6557 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.794e-05/0.7469, allocations: 48.22 kB / 0.6558 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001313/0.747, allocations: 104 kB / 0.6559 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002888/0.7499, allocations: 0.945 MB / 0.6568 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004432/0.7544, allocations: 1.213 MB / 0.658 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006939/0.7613, allocations: 5.142 MB / 0.663 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003655/0.765, allocations: 303.8 kB / 0.6633 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009022/0.7659, allocations: 307 kB / 0.6636 GB, free: 12.27 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 35 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],cylindrical.cylinderColor[3],cylindrical.cylinderColor[2],cylindrical.cylinderColor[1],cylindrical.revolute.cylinderColor[3],cylindrical.revolute.cylinderColor[2],cylindrical.revolute.cylinderColor[1],cylindrical.prismatic.boxColor[3],cylindrical.prismatic.boxColor[2],cylindrical.prismatic.boxColor[1],axis.color[3],axis.color[2],axis.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 (653): * Single equations (assignments): 646 * Array equations: 6 * 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 {(4,10,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004609/0.7705, allocations: 2.15 MB / 0.6657 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006387/0.7712, allocations: 284.2 kB / 0.666 GB, free: 9.824 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009241/0.7804, allocations: 5.131 MB / 0.671 GB, free: 4.668 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.068e-05/0.7805, allocations: 47.98 kB / 0.671 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/0.7806, allocations: 4 kB / 0.671 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/0.7806, allocations: 7.969 kB / 0.671 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02158/0.8022, allocations: 11.91 MB / 0.6827 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/0.8022, allocations: 12.19 kB / 0.6827 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.8039, allocations: 399.4 kB / 0.6831 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002459/0.8064, allocations: 0.7731 MB / 0.6838 GB, free: 7.363 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002371/0.8067, allocations: 50.5 kB / 0.6839 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005993/0.8127, allocations: 4.389 MB / 0.6882 GB, free: 2.785 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/0.8127, allocations: 19.88 kB / 0.6882 GB, free: 2.766 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/0.8243, allocations: 7.623 MB / 0.6956 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000734/0.8251, allocations: 321.5 kB / 0.6959 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000574/0.8257, allocations: 47.98 kB / 0.696 GB, free: 10.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/0.8272, allocations: 146.7 kB / 0.6961 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003929/0.8276, allocations: 156.9 kB / 0.6963 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/0.8277, allocations: 68 kB / 0.6963 GB, free: 10.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00293/0.8307, allocations: 1.701 MB / 0.698 GB, free: 8.535 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8307, allocations: 0 / 0.698 GB, free: 8.535 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004168/0.8349, allocations: 0.9868 MB / 0.699 GB, free: 7.551 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 4 (cylindrical.s,cylindrical.phi,cylindrical.v,cylindrical.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 (196): * Single equations (assignments): 189 * Array equations: 6 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2768/1.112, allocations: 8.276 MB / 0.707 GB, free: 201.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01805/1.13, allocations: 9.101 MB / 0.7159 GB, free: 200.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.675e-05/1.13, allocations: 1.375 kB / 0.7159 GB, free: 200.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003201/1.133, allocations: 2.146 MB / 0.718 GB, free: 199.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002303/1.135, allocations: 394.8 kB / 0.7184 GB, free: 199.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05957/1.195, allocations: 47.5 MB / 0.7648 GB, free: 161.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00387/1.199, allocations: 3.378 MB / 0.7681 GB, free: 158.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003931/1.203, allocations: 1.983 MB / 0.77 GB, free: 157.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002415/1.205, allocations: 1.839 MB / 0.7718 GB, free: 155.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.533e-06/1.205, allocations: 0 / 0.7718 GB, free: 155.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09218/1.297, allocations: 62.43 MB / 0.8328 GB, free: 93.18 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/1.298, allocations: 222.8 kB / 0.833 GB, free: 92.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.443/4.741, allocations: 0 / 0.833 GB, free: 92.91 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Cylindrical/Cylindrical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches