Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.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.JointUPS2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUPS2",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.0009424/0.0009457, allocations: 174.8 kB / 16.72 MB, free: 5.082 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.29/1.29, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007608/0.0007608, allocations: 81.44 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.309/0.309, allocations: 43.57 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003488, allocations: 12 kB / 432.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1135, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.2456/0.3591, allocations: 39.36 MB / 0.5179 GB, free: 22.44 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02/0.3792, allocations: 9.109 MB / 0.5267 GB, free: 16.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008378/0.3876, allocations: 183.9 kB / 0.5269 GB, free: 16.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006241/0.3938, allocations: 2.024 MB / 0.5289 GB, free: 15.51 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01604/0.4099, allocations: 6.178 MB / 0.5349 GB, free: 12.92 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003691/0.4136, allocations: 0.9161 MB / 0.5358 GB, free: 12.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02562/0.4393, allocations: 19.89 MB / 0.5552 GB, free: 6.719 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005949/0.4453, allocations: 4.348 MB / 0.5595 GB, free: 4.141 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002473/0.4478, allocations: 1.475 MB / 0.5609 GB, free: 2.66 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002473/0.4503, allocations: 2.36 MB / 0.5632 GB, free: 300 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005455/0.4508, allocations: 171.9 kB / 0.5634 GB, free: 128 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002427/0.4533, allocations: 1.287 MB / 0.5647 GB, free: 14.84 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001913/0.4552, allocations: 1.967 MB / 0.5666 GB, free: 12.86 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002456/0.4577, allocations: 2.211 MB / 0.5687 GB, free: 10.63 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006269/0.4639, allocations: 6.332 MB / 0.5749 GB, free: 4.285 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.464, allocations: 0 / 0.5749 GB, free: 4.285 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.464, allocations: 0 / 0.5749 GB, free: 4.285 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001413/0.4641, allocations: 0 / 0.5749 GB, free: 4.285 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.01098/0.4751, allocations: 4.938 MB / 0.5797 GB, free: 15.28 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4752, allocations: 12.03 kB / 0.5798 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00146/0.4766, allocations: 0.7946 MB / 0.5805 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08137/0.558, allocations: 7.407 MB / 0.5878 GB, free: 7.039 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008053/0.5661, allocations: 4.062 MB / 0.5917 GB, free: 2.918 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.5663, allocations: 259 kB / 0.592 GB, free: 2.664 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006825/0.567, allocations: 339.7 kB / 0.5923 GB, free: 2.332 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02123/0.5883, allocations: 12.29 MB / 0.6043 GB, free: 5.234 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001559/0.5885, allocations: 63.5 kB / 0.6044 GB, free: 5.172 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004663/0.589, allocations: 163.8 kB / 0.6045 GB, free: 5.012 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003735/0.5927, allocations: 2.381 MB / 0.6068 GB, free: 2.629 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/0.6139, allocations: 10.68 MB / 0.6173 GB, free: 7.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0611/0.675, allocations: 48.83 MB / 0.665 GB, free: 5.688 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.229/0.904, allocations: 5.855 MB / 0.6707 GB, free: 136.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004288/0.9083, allocations: 3.099 MB / 0.6737 GB, free: 136.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01752/0.9259, allocations: 13.02 MB / 0.6864 GB, free: 130.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.926, allocations: 54.19 kB / 0.6865 GB, free: 130.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=193): time 6.533e-06/0.926, allocations: 0 / 0.6865 GB, free: 130.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=254): time 0.1056/1.032, allocations: 38.99 MB / 0.7245 GB, free: 120 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/1.032, allocations: 205.4 kB / 0.7247 GB, free: 119.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005661/1.037, allocations: 4.391 MB / 0.729 GB, free: 118.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000601/1.038, allocations: 74.91 kB / 0.7291 GB, free: 118.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00177/1.04, allocations: 3.435 MB / 0.7325 GB, free: 115.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009374/1.041, allocations: 0.9466 MB / 0.7334 GB, free: 114.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/1.041, allocations: 135 kB / 0.7335 GB, free: 114.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002638/1.041, allocations: 0.5908 MB / 0.7341 GB, free: 113.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003624/1.045, allocations: 3.088 MB / 0.7371 GB, free: 111 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004822/1.05, allocations: 7.024 MB / 0.744 GB, free: 102.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00953/1.059, allocations: 10.92 MB / 0.7546 GB, free: 89.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-05/1.059, allocations: 40 kB / 0.7547 GB, free: 89.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02136/1.081, allocations: 12.61 MB / 0.767 GB, free: 76.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.137e-05/1.081, allocations: 64 kB / 0.767 GB, free: 76.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001178/1.081, allocations: 136 kB / 0.7672 GB, free: 76.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008327/1.089, allocations: 3.248 MB / 0.7703 GB, free: 73.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004832/1.094, allocations: 1.536 MB / 0.7718 GB, free: 71.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01864/1.113, allocations: 15.52 MB / 0.787 GB, free: 55.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00541/1.118, allocations: 431.4 kB / 0.7874 GB, free: 55.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000859/1.119, allocations: 408 kB / 0.7878 GB, free: 55.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 804 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,54.7%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003659/1.123, allocations: 2.343 MB / 0.7901 GB, free: 52.73 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008006/1.124, allocations: 406.8 kB / 0.7905 GB, free: 52.32 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01285/1.137, allocations: 7.515 MB / 0.7978 GB, free: 44.78 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.219e-05/1.137, allocations: 30.19 kB / 0.7979 GB, free: 44.75 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/1.137, allocations: 10.02 kB / 0.7979 GB, free: 44.75 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.638e-05/1.137, allocations: 15.95 kB / 0.7979 GB, free: 44.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02352/1.16, allocations: 15.2 MB / 0.8127 GB, free: 29.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/1.16, allocations: 3.938 kB / 0.8127 GB, free: 29.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/1.162, allocations: 387.4 kB / 0.8131 GB, free: 29.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007656/1.17, allocations: 2.926 MB / 0.816 GB, free: 26.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003185/1.17, allocations: 43.98 kB / 0.816 GB, free: 26.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01688/1.187, allocations: 13.73 MB / 0.8294 GB, free: 12.28 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/1.187, allocations: 0 / 0.8294 GB, free: 12.28 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/1.205, allocations: 11.47 MB / 0.8406 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002359/1.207, allocations: 0.9252 MB / 0.8415 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004749/1.207, allocations: 44 kB / 0.8415 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001973/1.209, allocations: 191.6 kB / 0.8417 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007393/1.21, allocations: 149.8 kB / 0.8419 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/1.21, allocations: 59.98 kB / 0.8419 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004273/1.215, allocations: 2.755 MB / 0.8446 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.71e-07/1.215, allocations: 0 / 0.8446 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005288/1.22, allocations: 1.311 MB / 0.8459 GB, free: 11.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (189): * Single equations (assignments): 185 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,61.1%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.245/1.465, allocations: 12.12 MB / 0.8577 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01299/1.478, allocations: 7.794 MB / 0.8653 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.478, allocations: 2.906 kB / 0.8654 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004691/1.483, allocations: 3.119 MB / 0.8684 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0036/1.486, allocations: 491.1 kB / 0.8689 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07632/1.563, allocations: 46.53 MB / 0.9143 GB, free: 108.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004611/1.567, allocations: 3.679 MB / 0.9179 GB, free: 107 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00307/1.57, allocations: 2.278 MB / 0.9201 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of SimCode: time 9.71e-07/1.57, allocations: 0 / 0.9201 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.81/9.381, allocations: 108.3 MB / 1.026 GB, free: 7.105 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches