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.001147/0.001147, allocations: 198.6 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 226.5 MB / 243.4 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008573/0.0008577, allocations: 100.8 kB / 295.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3099/0.3099, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.00027, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3097, allocations: 62.96 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.02526/0.335, allocations: 39.32 MB / 0.5543 GB, free: 9.172 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01837/0.3534, allocations: 9.119 MB / 0.5632 GB, free: 2.961 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007561/0.361, allocations: 188.1 kB / 0.5634 GB, free: 2.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006251/0.3673, allocations: 2.025 MB / 0.5653 GB, free: 2.199 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01735/0.3847, allocations: 6.164 MB / 0.5714 GB, free: 15.11 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003572/0.3883, allocations: 0.9128 MB / 0.5723 GB, free: 14.54 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0409/0.4292, allocations: 33.58 MB / 0.6051 GB, free: 13.95 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007235/0.4365, allocations: 4.344 MB / 0.6093 GB, free: 9.543 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003358/0.4399, allocations: 1.463 MB / 0.6107 GB, free: 8.074 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003924/0.4438, allocations: 2.345 MB / 0.613 GB, free: 5.723 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001134/0.445, allocations: 168 kB / 0.6132 GB, free: 5.559 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003131/0.4481, allocations: 1.283 MB / 0.6144 GB, free: 4.273 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002418/0.4506, allocations: 1.96 MB / 0.6163 GB, free: 2.309 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002495/0.4531, allocations: 2.145 MB / 0.6184 GB, free: 148 kB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006023/0.4591, allocations: 6.138 MB / 0.6244 GB, free: 9.992 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.4592, allocations: 3.938 kB / 0.6244 GB, free: 9.988 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4592, allocations: 4 kB / 0.6244 GB, free: 9.984 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001807/0.4594, allocations: 0 / 0.6244 GB, free: 9.984 MB / 442.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.009695/0.4691, allocations: 4.806 MB / 0.6291 GB, free: 5.109 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4691, allocations: 12.81 kB / 0.6291 GB, free: 5.098 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01508/0.4842, allocations: 2.662 MB / 0.6317 GB, free: 2.426 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006416/0.4907, allocations: 3.096 MB / 0.6348 GB, free: 15.27 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.4909, allocations: 254.8 kB / 0.635 GB, free: 15.02 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008034/0.4917, allocations: 351.8 kB / 0.6353 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01934/0.511, allocations: 12.36 MB / 0.6474 GB, free: 1.504 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.5112, allocations: 51.53 kB / 0.6475 GB, free: 1.453 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004146/0.5116, allocations: 167.8 kB / 0.6476 GB, free: 1.289 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003462/0.5151, allocations: 2.377 MB / 0.6499 GB, free: 14.91 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02029/0.5354, allocations: 10.82 MB / 0.6605 GB, free: 4.07 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3035/0.8389, allocations: 48.82 MB / 0.7082 GB, free: 101.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/0.8524, allocations: 6.057 MB / 0.7141 GB, free: 99.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003645/0.8561, allocations: 3.28 MB / 0.7173 GB, free: 98.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02207/0.8782, allocations: 13.52 MB / 0.7305 GB, free: 91.31 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/0.8783, allocations: 54.7 kB / 0.7306 GB, free: 91.26 MB / 490.7 MB Notification: Performance of pre-optimization done (n=204): time 4.999e-06/0.8783, allocations: 0 / 0.7306 GB, free: 91.26 MB / 490.7 MB Notification: Performance of matching and sorting (n=265): time 0.09328/0.9716, allocations: 36.39 MB / 0.7661 GB, free: 67.13 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.9717, allocations: 209.9 kB / 0.7663 GB, free: 66.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004882/0.9766, allocations: 4.346 MB / 0.7705 GB, free: 62.51 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005524/0.9772, allocations: 69.64 kB / 0.7706 GB, free: 62.44 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001382/0.9786, allocations: 3.375 MB / 0.7739 GB, free: 59.07 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008466/0.9794, allocations: 0.9834 MB / 0.7749 GB, free: 58.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003321/0.9798, allocations: 144.8 kB / 0.775 GB, free: 57.95 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002339/0.98, allocations: 0.5997 MB / 0.7756 GB, free: 57.34 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003728/0.9837, allocations: 3.258 MB / 0.7788 GB, free: 54.08 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005066/0.9888, allocations: 7.173 MB / 0.7858 GB, free: 44.99 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/0.9993, allocations: 11.21 MB / 0.7967 GB, free: 31.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.982e-05/0.9994, allocations: 40 kB / 0.7968 GB, free: 31.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=919) (initialization): time 0.0225/1.022, allocations: 13.22 MB / 0.8097 GB, free: 18.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.508e-05/1.022, allocations: 65.03 kB / 0.8097 GB, free: 18.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/1.022, allocations: 136 kB / 0.8099 GB, free: 18.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008891/1.031, allocations: 3.41 MB / 0.8132 GB, free: 14.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005124/1.036, allocations: 1.575 MB / 0.8147 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02096/1.057, allocations: 16.36 MB / 0.8307 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005964/1.063, allocations: 431.8 kB / 0.8311 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/1.064, allocations: 412 kB / 0.8315 GB, free: 12.09 MB / 0.4948 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.004428/1.069, allocations: 2.353 MB / 0.8338 GB, free: 9.727 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008552/1.07, allocations: 398.8 kB / 0.8342 GB, free: 9.332 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/1.086, allocations: 7.994 MB / 0.842 GB, free: 1.316 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.405e-05/1.086, allocations: 39.98 kB / 0.842 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.576e-05/1.086, allocations: 16 kB / 0.842 GB, free: 1.262 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-05/1.086, allocations: 11.91 kB / 0.8421 GB, free: 1.25 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/1.115, allocations: 15.52 MB / 0.8572 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.149e-05/1.115, allocations: 4 kB / 0.8572 GB, free: 1.707 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/1.117, allocations: 383.4 kB / 0.8576 GB, free: 1.332 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009521/1.127, allocations: 3.173 MB / 0.8607 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004857/1.127, allocations: 40 kB / 0.8607 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0217/1.149, allocations: 14.67 MB / 0.875 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.149, allocations: 4 kB / 0.8751 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02168/1.171, allocations: 12.12 MB / 0.8869 GB, free: 3.109 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/1.172, allocations: 459.8 kB / 0.8873 GB, free: 2.637 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007183/1.173, allocations: 36 kB / 0.8874 GB, free: 2.602 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/1.175, allocations: 191.7 kB / 0.8875 GB, free: 2.414 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005564/1.176, allocations: 154.3 kB / 0.8877 GB, free: 2.262 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/1.176, allocations: 67.98 kB / 0.8878 GB, free: 2.195 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.2395/1.415, allocations: 2.707 MB / 0.8904 GB, free: 179.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.31e-07/1.415, allocations: 0.5938 kB / 0.8904 GB, free: 179.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007461/1.423, allocations: 1.369 MB / 0.8917 GB, free: 179.7 MB / 0.5417 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.0005987/1.423, allocations: 182.4 kB / 0.8919 GB, free: 179.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01145/1.435, allocations: 8.134 MB / 0.8999 GB, free: 178.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/1.435, allocations: 6.812 kB / 0.8999 GB, free: 178.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004724/1.44, allocations: 3.297 MB / 0.9031 GB, free: 176.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/1.443, allocations: 479.7 kB / 0.9035 GB, free: 176.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02057/1.464, allocations: 14.32 MB / 0.9175 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00481/1.469, allocations: 3.653 MB / 0.9211 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001633/1.47, allocations: 330.9 kB / 0.9214 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.012e-06/1.47, allocations: 1.094 kB / 0.9214 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of Templates: time 0.1204/1.591, allocations: 91.54 MB / 1.011 GB, free: 91.92 MB / 0.5417 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