Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.JointUPS2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2") translateModel(ModelicaTest.MultiBody.Joints.JointUPS2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000956/0.0009562, allocations: 201.4 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006942/0.0006941, allocations: 107.3 kB / 295.1 MB, free: 4.387 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.173/0.173, allocations: 44.83 MB / 391.9 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.0002467, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.09719, allocations: 62.95 MB / 0.5153 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.2343/0.3315, allocations: 39.32 MB / 0.5537 GB, free: 9.836 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01905/0.3506, allocations: 9.134 MB / 0.5626 GB, free: 9.594 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008762/0.3594, allocations: 183.4 kB / 0.5628 GB, free: 9.566 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00831/0.3677, allocations: 2.01 MB / 0.5648 GB, free: 9.129 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01916/0.3869, allocations: 6.158 MB / 0.5708 GB, free: 7.707 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003225/0.3902, allocations: 0.8552 MB / 0.5716 GB, free: 7.453 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03563/0.4258, allocations: 33.53 MB / 0.6044 GB, free: 5.383 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00697/0.4328, allocations: 4.1 MB / 0.6084 GB, free: 2.34 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003326/0.4362, allocations: 1.468 MB / 0.6098 GB, free: 1.074 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003801/0.44, allocations: 2.345 MB / 0.6121 GB, free: 14.98 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001082/0.4411, allocations: 168 kB / 0.6122 GB, free: 14.81 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003075/0.4442, allocations: 1.074 MB / 0.6133 GB, free: 13.76 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00282/0.4471, allocations: 1.97 MB / 0.6152 GB, free: 11.8 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.4489, allocations: 0.9284 MB / 0.6161 GB, free: 10.86 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006871/0.4558, allocations: 6.133 MB / 0.6221 GB, free: 4.918 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.4558, allocations: 0 / 0.6221 GB, free: 4.918 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4558, allocations: 0 / 0.6221 GB, free: 4.918 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002529/0.4561, allocations: 4 kB / 0.6221 GB, free: 4.914 MB / 410.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.01087/0.4669, allocations: 4.863 MB / 0.6269 GB, free: 40 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.467, allocations: 12.03 kB / 0.6269 GB, free: 28 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0157/0.4827, allocations: 2.665 MB / 0.6295 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006321/0.4891, allocations: 3.041 MB / 0.6325 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.4892, allocations: 257.4 kB / 0.6327 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006196/0.4899, allocations: 352.9 kB / 0.633 GB, free: 9.781 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01932/0.5092, allocations: 12.36 MB / 0.6451 GB, free: 12.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000121/0.5094, allocations: 55.52 kB / 0.6452 GB, free: 12.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004186/0.5098, allocations: 166.2 kB / 0.6453 GB, free: 12.56 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00367/0.5135, allocations: 2.38 MB / 0.6476 GB, free: 10.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01986/0.5333, allocations: 10.81 MB / 0.6582 GB, free: 15.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05727/0.5906, allocations: 48.81 MB / 0.7059 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01465/0.6053, allocations: 6.044 MB / 0.7118 GB, free: 7.133 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004159/0.6095, allocations: 3.303 MB / 0.715 GB, free: 3.824 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01923/0.6288, allocations: 13.5 MB / 0.7282 GB, free: 6.02 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/0.6289, allocations: 55.81 kB / 0.7282 GB, free: 5.957 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=204): time 6.101e-06/0.6289, allocations: 4 kB / 0.7282 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of matching and sorting (n=265): time 0.3345/0.9634, allocations: 36.37 MB / 0.7637 GB, free: 178 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.47e-05/0.9635, allocations: 212 kB / 0.764 GB, free: 177.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005632/0.9691, allocations: 4.348 MB / 0.7682 GB, free: 176.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003742/0.9695, allocations: 65.55 kB / 0.7683 GB, free: 176.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001512/0.971, allocations: 3.379 MB / 0.7716 GB, free: 173.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007634/0.9718, allocations: 0.9826 MB / 0.7725 GB, free: 172.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.9721, allocations: 140.9 kB / 0.7727 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002722/0.9724, allocations: 0.601 MB / 0.7732 GB, free: 172.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003826/0.9762, allocations: 3.264 MB / 0.7764 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004816/0.981, allocations: 7.171 MB / 0.7834 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004801/0.9859, allocations: 4.702 MB / 0.788 GB, free: 162.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.079e-05/0.9859, allocations: 39.75 kB / 0.7881 GB, free: 162.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=919) (initialization): time 0.01988/1.006, allocations: 13.22 MB / 0.801 GB, free: 153.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.261e-05/1.006, allocations: 64 kB / 0.801 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.657e-05/1.006, allocations: 136.8 kB / 0.8012 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008322/1.014, allocations: 3.433 MB / 0.8045 GB, free: 149.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004636/1.019, allocations: 1.579 MB / 0.8061 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01831/1.037, allocations: 16.36 MB / 0.822 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005534/1.043, allocations: 435.5 kB / 0.8225 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007676/1.044, allocations: 409.2 kB / 0.8228 GB, free: 131 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * 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 (841): * Single equations (assignments): 837 * 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 {(5,60.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003602/1.047, allocations: 2.346 MB / 0.8251 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006456/1.048, allocations: 402.8 kB / 0.8255 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01292/1.061, allocations: 7.99 MB / 0.8333 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.778e-05/1.061, allocations: 29.08 kB / 0.8334 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/1.061, allocations: 12 kB / 0.8334 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/1.061, allocations: 18.53 kB / 0.8334 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02226/1.083, allocations: 15.52 MB / 0.8485 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.895e-05/1.083, allocations: 4 kB / 0.8485 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/1.085, allocations: 390.2 kB / 0.8489 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008262/1.093, allocations: 3.165 MB / 0.852 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003286/1.094, allocations: 45.64 kB / 0.852 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01669/1.11, allocations: 14.66 MB / 0.8664 GB, free: 86.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/1.11, allocations: 4 kB / 0.8664 GB, free: 86.26 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01712/1.128, allocations: 12.11 MB / 0.8782 GB, free: 74.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/1.129, allocations: 459.7 kB / 0.8786 GB, free: 73.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005261/1.129, allocations: 40 kB / 0.8787 GB, free: 73.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001911/1.131, allocations: 188.3 kB / 0.8789 GB, free: 73.38 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003945/1.132, allocations: 166.1 kB / 0.879 GB, free: 73.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/1.132, allocations: 66.33 kB / 0.8791 GB, free: 73.15 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003004/1.135, allocations: 2.71 MB / 0.8817 GB, free: 70.44 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.135, allocations: 0 / 0.8817 GB, free: 70.44 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005046/1.14, allocations: 1.369 MB / 0.8831 GB, free: 69.07 MB / 0.5261 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 (197): * Single equations (assignments): 193 * 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 {(5,60.0%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004435/1.14, allocations: 184.9 kB / 0.8832 GB, free: 68.89 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01001/1.15, allocations: 8.131 MB / 0.8912 GB, free: 60.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/1.15, allocations: 1.125 kB / 0.8912 GB, free: 60.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004212/1.155, allocations: 3.305 MB / 0.8944 GB, free: 57.46 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00306/1.158, allocations: 487.2 kB / 0.8949 GB, free: 57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/1.175, allocations: 14.32 MB / 0.9089 GB, free: 42.64 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002875/1.178, allocations: 3.654 MB / 0.9124 GB, free: 38.95 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/1.18, allocations: 331.4 kB / 0.9127 GB, free: 38.63 MB / 0.5261 GB Notification: Performance of SimCode: time 7.62e-07/1.18, allocations: 0 / 0.9127 GB, free: 38.63 MB / 0.5261 GB Notification: Performance of Templates: time 0.3192/1.499, allocations: 91.69 MB / 1.002 GB, free: 129.9 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches