Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008104/0.0008104, allocations: 93.42 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008965/0.0008966, allocations: 171.3 kB / 18.25 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1936/0.1936, allocations: 44.25 MB / 337.7 MB, free: 2.438 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002919/0.0002916, allocations: 8.281 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1027, allocations: 61.93 MB / 472.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.03655/0.1393, allocations: 42.22 MB / 0.5025 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2408/0.3802, allocations: 9.571 MB / 0.5119 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006631/0.3868, allocations: 187.5 kB / 0.5121 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.3881, allocations: 464.4 kB / 0.5125 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004381/0.3925, allocations: 1.913 MB / 0.5144 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001895/0.3944, allocations: 0.9375 MB / 0.5153 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008375/0.4028, allocations: 7.424 MB / 0.5225 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00627/0.4091, allocations: 4.506 MB / 0.5269 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002564/0.4117, allocations: 1.349 MB / 0.5282 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003041/0.4148, allocations: 2.36 MB / 0.5306 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000853/0.4156, allocations: 168.2 kB / 0.5307 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002697/0.4183, allocations: 1.312 MB / 0.532 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002187/0.4205, allocations: 1.997 MB / 0.5339 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00338/0.4239, allocations: 2.339 MB / 0.5362 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008309/0.4322, allocations: 7.701 MB / 0.5437 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4323, allocations: 0 / 0.5437 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4323, allocations: 0 / 0.5437 GB, free: 12.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002305/0.4325, allocations: 0 / 0.5437 GB, free: 12.83 MB / 398.1 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.01081/0.4433, allocations: 4.905 MB / 0.5485 GB, free: 7.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.4434, allocations: 12.03 kB / 0.5486 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00128/0.4447, allocations: 0.7982 MB / 0.5493 GB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08956/0.5343, allocations: 7.402 MB / 0.5566 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007366/0.5417, allocations: 3.758 MB / 0.5602 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.5419, allocations: 253.5 kB / 0.5605 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001262/0.5432, allocations: 355.5 kB / 0.5608 GB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02166/0.5648, allocations: 12.31 MB / 0.5728 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001857/0.5651, allocations: 47.53 kB / 0.5729 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009086/0.566, allocations: 168.7 kB / 0.573 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003851/0.5698, allocations: 2.378 MB / 0.5754 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02129/0.5912, allocations: 10.73 MB / 0.5858 GB, free: 1.141 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05915/0.6503, allocations: 48.78 MB / 0.6335 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01472/0.6651, allocations: 5.869 MB / 0.6392 GB, free: 9.148 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00376/0.6689, allocations: 3.114 MB / 0.6423 GB, free: 6.027 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01801/0.6869, allocations: 13.01 MB / 0.655 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.687, allocations: 51.88 kB / 0.655 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=193): time 4.268e-06/0.687, allocations: 0 / 0.655 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of matching and sorting (n=254): time 0.1163/0.8033, allocations: 38.9 MB / 0.693 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.8035, allocations: 201.9 kB / 0.6932 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007586/0.8111, allocations: 4.388 MB / 0.6975 GB, free: 12.98 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006737/0.8118, allocations: 65.7 kB / 0.6975 GB, free: 12.91 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002463/0.8143, allocations: 3.425 MB / 0.7009 GB, free: 9.484 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001292/0.8156, allocations: 0.9431 MB / 0.7018 GB, free: 8.547 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001356/0.817, allocations: 0.5737 MB / 0.7024 GB, free: 7.969 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.8171, allocations: 305.1 kB / 0.7027 GB, free: 7.668 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00513/0.8222, allocations: 3.117 MB / 0.7057 GB, free: 4.547 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2038/1.026, allocations: 7.04 MB / 0.7126 GB, free: 197.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01341/1.039, allocations: 10.96 MB / 0.7233 GB, free: 190.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002719/1.04, allocations: 38.66 kB / 0.7233 GB, free: 190.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02686/1.067, allocations: 12.66 MB / 0.7357 GB, free: 186.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/1.067, allocations: 68.94 kB / 0.7357 GB, free: 186.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001916/1.067, allocations: 137.5 kB / 0.7359 GB, free: 186.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008844/1.076, allocations: 3.254 MB / 0.7391 GB, free: 185.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005175/1.081, allocations: 1.535 MB / 0.7406 GB, free: 185.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01911/1.1, allocations: 15.51 MB / 0.7557 GB, free: 177.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005504/1.106, allocations: 428.7 kB / 0.7561 GB, free: 177.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00101/1.107, allocations: 413.5 kB / 0.7565 GB, free: 176.8 MB / 0.545 GB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,47,54.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003672/1.111, allocations: 2.338 MB / 0.7588 GB, free: 174.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008395/1.111, allocations: 410.7 kB / 0.7592 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01314/1.125, allocations: 7.523 MB / 0.7665 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-05/1.125, allocations: 28.62 kB / 0.7666 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-05/1.125, allocations: 11.94 kB / 0.7666 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-05/1.125, allocations: 11.95 kB / 0.7666 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02601/1.151, allocations: 15.21 MB / 0.7814 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.223e-05/1.151, allocations: 0 / 0.7814 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/1.153, allocations: 379.4 kB / 0.7818 GB, free: 151.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008062/1.161, allocations: 2.935 MB / 0.7847 GB, free: 148.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000522/1.161, allocations: 40.94 kB / 0.7847 GB, free: 148.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01661/1.178, allocations: 13.76 MB / 0.7981 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/1.178, allocations: 3.938 kB / 0.7981 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01766/1.196, allocations: 11.48 MB / 0.8094 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/1.197, allocations: 451.7 kB / 0.8098 GB, free: 122.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0017/1.199, allocations: 44 kB / 0.8098 GB, free: 122.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002998/1.202, allocations: 197.3 kB / 0.81 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007037/1.203, allocations: 141.8 kB / 0.8101 GB, free: 122.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003433/1.203, allocations: 67.94 kB / 0.8102 GB, free: 122 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004148/1.207, allocations: 2.75 MB / 0.8129 GB, free: 119.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.207, allocations: 0 / 0.8129 GB, free: 119.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005855/1.213, allocations: 1.312 MB / 0.8142 GB, free: 117.9 MB / 0.545 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,40,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01713/1.23, allocations: 12.15 MB / 0.826 GB, free: 105.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01168/1.242, allocations: 7.822 MB / 0.8337 GB, free: 97.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/1.242, allocations: 0 / 0.8337 GB, free: 97.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004454/1.246, allocations: 3.125 MB / 0.8367 GB, free: 94.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003951/1.25, allocations: 491.6 kB / 0.8372 GB, free: 94.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09956/1.35, allocations: 70.46 MB / 0.906 GB, free: 15.29 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004893/1.355, allocations: 3.668 MB / 0.9096 GB, free: 11.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005332/1.36, allocations: 2.171 MB / 0.9117 GB, free: 9.414 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00296/1.363, allocations: 2.221 MB / 0.9139 GB, free: 7.191 MB / 0.545 GB Notification: Performance of SimCode: time 8.51e-07/1.363, allocations: 0 / 0.9139 GB, free: 7.191 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3211/1.684, allocations: 94.62 MB / 1.006 GB, free: 126.8 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/1.685, allocations: 215.4 kB / 1.006 GB, free: 126.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.875/5.56, allocations: 4 kB / 1.006 GB, free: 126.6 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches