Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001188/0.001188, allocations: 96.98 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00167/0.00167, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1967/0.1967, allocations: 46.18 MB / 345.2 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002515, allocations: 8 kB / 419.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 63.57 MB / 483.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSR): time 0.02906/0.1322, allocations: 32.86 MB / 0.5039 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2313/0.3636, allocations: 7.368 MB / 0.5111 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005499/0.3691, allocations: 137.6 kB / 0.5113 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007828/0.3699, allocations: 228.5 kB / 0.5115 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001451/0.3714, allocations: 0.557 MB / 0.512 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001935/0.3733, allocations: 0.6568 MB / 0.5127 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00364/0.377, allocations: 2.546 MB / 0.5152 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006741/0.3837, allocations: 4.721 MB / 0.5198 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.3852, allocations: 0.6302 MB / 0.5204 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.3868, allocations: 1.043 MB / 0.5214 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002192/0.3871, allocations: 92.28 kB / 0.5215 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.3888, allocations: 0.9037 MB / 0.5224 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008173/0.3896, allocations: 0.9397 MB / 0.5233 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008167/0.3904, allocations: 1.115 MB / 0.5244 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003691/0.3941, allocations: 4.344 MB / 0.5286 GB, free: 5.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3941, allocations: 2.344 kB / 0.5286 GB, free: 5.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3941, allocations: 5 kB / 0.5286 GB, free: 5.934 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.108e-05/0.3942, allocations: 0 / 0.5286 GB, free: 5.934 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.004748/0.399, allocations: 2.419 MB / 0.531 GB, free: 4.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.399, allocations: 10.53 kB / 0.531 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005292/0.3996, allocations: 427.5 kB / 0.5314 GB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.4007, allocations: 362.6 kB / 0.5318 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/0.4027, allocations: 1.29 MB / 0.533 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.4028, allocations: 166.7 kB / 0.5332 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003599/0.4032, allocations: 225.1 kB / 0.5334 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/0.4151, allocations: 6.507 MB / 0.5397 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.722e-05/0.4152, allocations: 14.66 kB / 0.5398 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.4154, allocations: 97.34 kB / 0.5399 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001012/0.4164, allocations: 0.8082 MB / 0.5406 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0126/0.429, allocations: 5.511 MB / 0.546 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0251/0.4542, allocations: 19.09 MB / 0.5647 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007097/0.4613, allocations: 1.828 MB / 0.5665 GB, free: 5.102 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.4624, allocations: 0.6939 MB / 0.5671 GB, free: 4.406 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006888/0.4693, allocations: 4.796 MB / 0.5718 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.4694, allocations: 39.12 kB / 0.5719 GB, free: 15.17 MB / 430.1 MB Notification: Performance of pre-optimization done (n=70): time 2.875e-06/0.4694, allocations: 0 / 0.5719 GB, free: 15.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=110): time 0.04024/0.5096, allocations: 8.811 MB / 0.5805 GB, free: 6.355 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.5097, allocations: 64.41 kB / 0.5805 GB, free: 6.277 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003025/0.5127, allocations: 1.83 MB / 0.5823 GB, free: 4.441 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.5129, allocations: 45.7 kB / 0.5823 GB, free: 4.391 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.514, allocations: 1.525 MB / 0.5838 GB, free: 2.863 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004092/0.5144, allocations: 411.9 kB / 0.5842 GB, free: 2.465 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000404/0.5148, allocations: 247.3 kB / 0.5845 GB, free: 2.219 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.497e-05/0.5149, allocations: 305.1 kB / 0.5848 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00172/0.5167, allocations: 1.02 MB / 0.5858 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002647/0.5193, allocations: 2.529 MB / 0.5882 GB, free: 13.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004621/0.5239, allocations: 3.815 MB / 0.5919 GB, free: 9.074 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.81e-05/0.524, allocations: 12 kB / 0.592 GB, free: 9.062 MB / 446.1 MB Notification: Performance of matching and sorting (n=352) (initialization): time 0.005829/0.5298, allocations: 3.543 MB / 0.5954 GB, free: 5.508 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/0.5299, allocations: 36.19 kB / 0.5955 GB, free: 5.473 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.747e-05/0.53, allocations: 55.94 kB / 0.5955 GB, free: 5.418 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.817e-05/0.5301, allocations: 72 kB / 0.5956 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/0.5323, allocations: 0.6667 MB / 0.5962 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001003/0.5325, allocations: 103.6 kB / 0.5963 GB, free: 4.578 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.5344, allocations: 159.7 kB / 0.5965 GB, free: 4.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002506/0.5347, allocations: 152 kB / 0.5966 GB, free: 4.273 MB / 446.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.001927/0.5366, allocations: 1.137 MB / 0.5977 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000327/0.537, allocations: 165.8 kB / 0.5979 GB, free: 2.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.5401, allocations: 1.757 MB / 0.5996 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.5401, allocations: 12 kB / 0.5996 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.5401, allocations: 0 / 0.5996 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.5402, allocations: 7.922 kB / 0.5996 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009964/0.5501, allocations: 5.442 MB / 0.6049 GB, free: 11.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.291e-05/0.5502, allocations: 12 kB / 0.605 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008692/0.5511, allocations: 211.6 kB / 0.6052 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.411e-05/0.5511, allocations: 16 kB / 0.6052 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.729e-05/0.5512, allocations: 28 kB / 0.6052 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.808e-05/0.5512, allocations: 23.92 kB / 0.6052 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.632e-05/0.5513, allocations: 23.88 kB / 0.6052 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.5538, allocations: 1.678 MB / 0.6069 GB, free: 9.371 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007087/0.5545, allocations: 254.8 kB / 0.6071 GB, free: 9.102 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004729/0.555, allocations: 39.98 kB / 0.6072 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009876/0.556, allocations: 43.97 kB / 0.6072 GB, free: 9.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.5562, allocations: 108.1 kB / 0.6073 GB, free: 8.914 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.316e-05/0.5563, allocations: 44 kB / 0.6073 GB, free: 8.871 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.5588, allocations: 1.195 MB / 0.6085 GB, free: 7.684 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5588, allocations: 0 / 0.6085 GB, free: 7.684 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002727/0.5615, allocations: 0.4961 MB / 0.609 GB, free: 7.188 MB / 462.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.003159/0.5647, allocations: 2.317 MB / 0.6113 GB, free: 4.695 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003952/0.5686, allocations: 2.2 MB / 0.6134 GB, free: 2.508 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.5687, allocations: 0 / 0.6134 GB, free: 2.508 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000892/0.5696, allocations: 0.6068 MB / 0.614 GB, free: 1.898 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00418/0.5738, allocations: 257.1 kB / 0.6142 GB, free: 1.648 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03996/0.6137, allocations: 23.83 MB / 0.6375 GB, free: 6.871 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002799/0.6166, allocations: 2.063 MB / 0.6395 GB, free: 4.773 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002421/0.619, allocations: 0.7344 MB / 0.6402 GB, free: 4.035 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001806/0.6209, allocations: 0.964 MB / 0.6412 GB, free: 3.07 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/0.6209, allocations: 0 / 0.6412 GB, free: 3.07 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06459/0.6855, allocations: 37.02 MB / 0.6773 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.6857, allocations: 184 kB / 0.6775 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/3.166, allocations: 3.938 kB / 0.6775 GB, free: 14.01 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointSSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointSSR_res.mat","/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_trunk_ModelicaTest.MultiBody.Joints.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches