Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008821/0.0008822, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007156/0.0007152, allocations: 85.34 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3399/0.3399, allocations: 43.57 MB / 363.1 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003406, allocations: 16 kB / 432.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 58.84 MB / 490.9 MB, free: 10.78 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSP): time 0.224/0.3267, allocations: 31.43 MB / 0.5101 GB, free: 28.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.3434, allocations: 6.922 MB / 0.5169 GB, free: 23.37 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007323/0.3507, allocations: 137.7 kB / 0.517 GB, free: 23.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005061/0.3558, allocations: 1.47 MB / 0.5184 GB, free: 22.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01316/0.369, allocations: 4.076 MB / 0.5224 GB, free: 21.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003086/0.3721, allocations: 442.5 kB / 0.5228 GB, free: 20.88 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002833/0.375, allocations: 2.182 MB / 0.525 GB, free: 20.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005244/0.3803, allocations: 4.572 MB / 0.5294 GB, free: 18.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001624/0.3819, allocations: 0.6817 MB / 0.5301 GB, free: 17.88 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001647/0.3836, allocations: 1.037 MB / 0.5311 GB, free: 17.53 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003287/0.3839, allocations: 97.03 kB / 0.5312 GB, free: 17.52 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001531/0.3855, allocations: 0.6789 MB / 0.5319 GB, free: 17.34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009531/0.3864, allocations: 0.976 MB / 0.5328 GB, free: 17.05 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008966/0.3874, allocations: 1.131 MB / 0.5339 GB, free: 16.26 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003919/0.3913, allocations: 3.697 MB / 0.5375 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3913, allocations: 0 / 0.5375 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3913, allocations: 0 / 0.5375 GB, free: 15.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001787/0.3915, allocations: 0 / 0.5375 GB, free: 15.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 897 * Number of variables: 897 Notification: Performance of Generate backend data structure: time 0.004928/0.3964, allocations: 2.421 MB / 0.5399 GB, free: 14.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3965, allocations: 7.359 kB / 0.5399 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000897/0.3974, allocations: 463.1 kB / 0.5404 GB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/0.3986, allocations: 360.5 kB / 0.5407 GB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001932/0.4006, allocations: 1.261 MB / 0.5419 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.165e-05/0.4007, allocations: 174.3 kB / 0.5421 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003115/0.401, allocations: 235.2 kB / 0.5423 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/0.4132, allocations: 6.033 MB / 0.5482 GB, free: 9.824 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.868e-05/0.4133, allocations: 14.66 kB / 0.5482 GB, free: 9.816 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.4136, allocations: 105.6 kB / 0.5483 GB, free: 9.738 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001634/0.4152, allocations: 0.9585 MB / 0.5493 GB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/0.4262, allocations: 4.484 MB / 0.5536 GB, free: 7.195 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02313/0.4494, allocations: 18.56 MB / 0.5718 GB, free: 6.613 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003882/0.4533, allocations: 1.269 MB / 0.573 GB, free: 5.324 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005801/0.4539, allocations: 391.3 kB / 0.5734 GB, free: 4.938 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001633/0.4556, allocations: 2.055 MB / 0.5754 GB, free: 2.551 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.4556, allocations: 47.66 kB / 0.5754 GB, free: 2.496 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 4.448e-06/0.4556, allocations: 0 / 0.5754 GB, free: 2.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=110): time 0.02756/0.4832, allocations: 5.955 MB / 0.5812 GB, free: 12.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.53e-05/0.4833, allocations: 90.11 kB / 0.5813 GB, free: 12.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004043/0.4874, allocations: 1.824 MB / 0.5831 GB, free: 10.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.4875, allocations: 45.7 kB / 0.5832 GB, free: 10.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001678/0.4892, allocations: 1.664 MB / 0.5848 GB, free: 8.848 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005787/0.4898, allocations: 402.6 kB / 0.5852 GB, free: 8.449 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.49, allocations: 52 kB / 0.5852 GB, free: 8.398 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003151/0.4904, allocations: 423.8 kB / 0.5856 GB, free: 7.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002264/0.4926, allocations: 0.7941 MB / 0.5864 GB, free: 7.184 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003809/0.4965, allocations: 2.346 MB / 0.5887 GB, free: 4.074 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006891/0.5034, allocations: 3.455 MB / 0.5921 GB, free: 15.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.75e-05/0.5035, allocations: 23.88 kB / 0.5921 GB, free: 15.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=361) (initialization): time 0.009957/0.5135, allocations: 3.145 MB / 0.5952 GB, free: 12.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.032e-05/0.5136, allocations: 28 kB / 0.5952 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.281e-05/0.5137, allocations: 56 kB / 0.5952 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001096/0.5138, allocations: 72 kB / 0.5953 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0038/0.5176, allocations: 0.6356 MB / 0.5959 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001554/0.5178, allocations: 112 kB / 0.596 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002718/0.5206, allocations: 123.9 kB / 0.5961 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003252/0.5209, allocations: 160 kB / 0.5963 GB, free: 11.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 249 * Number of states: 0 () * Number of discrete variables: 34 (jointSSP.prismatic.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[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 (361): * Single equations (assignments): 361 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00308/0.524, allocations: 1.203 MB / 0.5975 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004864/0.5245, allocations: 169.8 kB / 0.5976 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003414/0.5279, allocations: 1.27 MB / 0.5989 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.528, allocations: 12 kB / 0.5989 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.528, allocations: 0 / 0.5989 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.528, allocations: 7.984 kB / 0.5989 GB, free: 8.812 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.5428, allocations: 6.451 MB / 0.6052 GB, free: 1.973 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.489e-05/0.5429, allocations: 20.94 kB / 0.6052 GB, free: 1.953 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006284/0.5436, allocations: 199.6 kB / 0.6054 GB, free: 1.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.496e-05/0.5436, allocations: 24 kB / 0.6054 GB, free: 1.734 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-05/0.5437, allocations: 51.98 kB / 0.6055 GB, free: 1.684 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.054e-05/0.5437, allocations: 43.8 kB / 0.6055 GB, free: 1.641 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-05/0.5437, allocations: 35.81 kB / 0.6056 GB, free: 1.605 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.5457, allocations: 1.658 MB / 0.6072 GB, free: 15.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004978/0.5462, allocations: 274.8 kB / 0.6074 GB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/0.5464, allocations: 55.92 kB / 0.6075 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006248/0.547, allocations: 35.98 kB / 0.6075 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.5472, allocations: 139.3 kB / 0.6077 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.209e-05/0.5473, allocations: 52 kB / 0.6077 GB, free: 15.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00174/0.549, allocations: 1.216 MB / 0.6089 GB, free: 13.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.549, allocations: 0 / 0.6089 GB, free: 13.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002215/0.5512, allocations: 500 kB / 0.6094 GB, free: 13.39 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * 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 (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002392/0.5536, allocations: 2.32 MB / 0.6116 GB, free: 10.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002912/0.5566, allocations: 1.821 MB / 0.6134 GB, free: 8.957 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.5566, allocations: 8.125 kB / 0.6134 GB, free: 8.949 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006756/0.5573, allocations: 493 kB / 0.6139 GB, free: 8.473 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005758/0.563, allocations: 269.1 kB / 0.6141 GB, free: 8.211 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02859/0.5917, allocations: 15.89 MB / 0.6297 GB, free: 6.547 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003248/0.595, allocations: 2.202 MB / 0.6318 GB, free: 4.312 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/0.5965, allocations: 1.066 MB / 0.6329 GB, free: 3.25 MB / 458.7 MB Notification: Performance of SimCode: time 2.053e-06/0.5965, allocations: 0 / 0.6329 GB, free: 3.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.522/5.118, allocations: 39.19 MB / 0.6711 GB, free: 12 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointSSP/JointSSP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches