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.001445/0.001445, allocations: 113.4 kB / 17.78 MB, free: 5.266 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.001547/0.001547, allocations: 188.9 kB / 18.71 MB, free: 4.344 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.393/1.393, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.1984/0.1984, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.91 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3671, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01215/0.3793, allocations: 11.96 MB / 0.5301 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009175/0.3885, allocations: 4.365 MB / 0.5344 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00249/0.391, allocations: 70.97 kB / 0.5344 GB, free: 7.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005243/0.3963, allocations: 2.76 MB / 0.5371 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005553/0.4019, allocations: 2.041 MB / 0.5391 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.4043, allocations: 1.01 MB / 0.5401 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008417/0.4127, allocations: 5.289 MB / 0.5453 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004126/0.4169, allocations: 3.436 MB / 0.5486 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002861/0.4197, allocations: 1.764 MB / 0.5504 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003709/0.4235, allocations: 2.442 MB / 0.5527 GB, free: 8.848 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009236/0.4244, allocations: 368 kB / 0.5531 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002731/0.4271, allocations: 1.428 MB / 0.5545 GB, free: 7.059 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002027/0.4292, allocations: 2.205 MB / 0.5566 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002733/0.4319, allocations: 2.575 MB / 0.5592 GB, free: 2.258 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008844/0.4408, allocations: 8.242 MB / 0.5672 GB, free: 9.988 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4408, allocations: 3.938 kB / 0.5672 GB, free: 9.984 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4408, allocations: 4 kB / 0.5672 GB, free: 9.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002154/0.4411, allocations: 0 / 0.5672 GB, free: 9.98 MB / 430.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.01585/0.4569, allocations: 5.886 MB / 0.573 GB, free: 4.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.457, allocations: 12.03 kB / 0.573 GB, free: 4.008 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001251/0.4583, allocations: 0.7985 MB / 0.5738 GB, free: 3.199 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09122/0.5495, allocations: 7.215 MB / 0.5808 GB, free: 11.97 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009388/0.5589, allocations: 3.814 MB / 0.5845 GB, free: 8.094 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/0.5592, allocations: 258.8 kB / 0.5848 GB, free: 7.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.5608, allocations: 347.7 kB / 0.5851 GB, free: 7.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02291/0.5838, allocations: 12.28 MB / 0.5971 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001934/0.584, allocations: 63.42 kB / 0.5972 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009569/0.585, allocations: 163.8 kB / 0.5973 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004019/0.589, allocations: 2.377 MB / 0.5996 GB, free: 7.805 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02261/0.6116, allocations: 10.71 MB / 0.6101 GB, free: 13.08 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06261/0.6743, allocations: 48.56 MB / 0.6575 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01535/0.6897, allocations: 5.856 MB / 0.6632 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004029/0.6937, allocations: 3.132 MB / 0.6663 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02276/0.7165, allocations: 13 MB / 0.679 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.12e-05/0.7166, allocations: 51.88 kB / 0.679 GB, free: 4.547 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=193): time 6.342e-06/0.7167, allocations: 4 kB / 0.679 GB, free: 4.543 MB / 0.5294 GB Notification: Performance of matching and sorting (n=254): time 0.3774/1.094, allocations: 38.69 MB / 0.7168 GB, free: 171.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/1.094, allocations: 209.2 kB / 0.717 GB, free: 171 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006207/1.1, allocations: 4.386 MB / 0.7213 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005929/1.101, allocations: 65.61 kB / 0.7214 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001847/1.103, allocations: 3.426 MB / 0.7247 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009875/1.104, allocations: 0.9513 MB / 0.7257 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001831/1.106, allocations: 1.363 MB / 0.727 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.216e-05/1.106, allocations: 305.1 kB / 0.7273 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004529/1.11, allocations: 3.117 MB / 0.7303 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008414/1.119, allocations: 7.038 MB / 0.7372 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/1.13, allocations: 10.97 MB / 0.7479 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001991/1.13, allocations: 38.28 kB / 0.7479 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02213/1.152, allocations: 12.66 MB / 0.7603 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.191e-05/1.152, allocations: 64 kB / 0.7604 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000125/1.152, allocations: 140 kB / 0.7605 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008245/1.161, allocations: 3.24 MB / 0.7637 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004824/1.166, allocations: 1.532 MB / 0.7652 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01885/1.184, allocations: 16.61 MB / 0.7814 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005812/1.19, allocations: 427.4 kB / 0.7818 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008734/1.191, allocations: 411.7 kB / 0.7822 GB, free: 120.1 MB / 0.5606 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.003614/1.195, allocations: 2.347 MB / 0.7845 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00075/1.196, allocations: 406.8 kB / 0.7849 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/1.208, allocations: 7.519 MB / 0.7922 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-05/1.208, allocations: 28 kB / 0.7922 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.097e-05/1.208, allocations: 8 kB / 0.7922 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.214e-05/1.208, allocations: 15.95 kB / 0.7923 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02499/1.233, allocations: 15.04 MB / 0.8069 GB, free: 94.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.619e-05/1.233, allocations: 7.562 kB / 0.8069 GB, free: 94.69 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001851/1.235, allocations: 379.5 kB / 0.8073 GB, free: 94.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007525/1.243, allocations: 2.927 MB / 0.8102 GB, free: 91.39 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003757/1.243, allocations: 47.81 kB / 0.8102 GB, free: 91.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01632/1.26, allocations: 14.81 MB / 0.8247 GB, free: 76.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.26, allocations: 4 kB / 0.8247 GB, free: 76.38 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01603/1.276, allocations: 11.47 MB / 0.8359 GB, free: 64.84 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/1.277, allocations: 451.8 kB / 0.8363 GB, free: 64.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004811/1.277, allocations: 36 kB / 0.8363 GB, free: 64.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001944/1.279, allocations: 195.7 kB / 0.8365 GB, free: 64.14 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005123/1.28, allocations: 149.7 kB / 0.8367 GB, free: 64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/1.28, allocations: 64 kB / 0.8367 GB, free: 63.94 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003321/1.283, allocations: 2.747 MB / 0.8394 GB, free: 61.19 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.283, allocations: 0 / 0.8394 GB, free: 61.19 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005143/1.288, allocations: 1.321 MB / 0.8407 GB, free: 59.88 MB / 0.5606 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.01645/1.305, allocations: 12.16 MB / 0.8526 GB, free: 47.65 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01074/1.316, allocations: 7.853 MB / 0.8602 GB, free: 39.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.316, allocations: 0 / 0.8602 GB, free: 39.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004084/1.32, allocations: 3.126 MB / 0.8633 GB, free: 36.67 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003103/1.323, allocations: 0.5141 MB / 0.8638 GB, free: 36.16 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08651/1.41, allocations: 60.56 MB / 0.9229 GB, free: 1.344 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004761/1.414, allocations: 3.662 MB / 0.9265 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.004667/1.419, allocations: 2.18 MB / 0.9286 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002972/1.422, allocations: 2.225 MB / 0.9308 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of SimCode: time 5.72e-07/1.422, allocations: 0 / 0.9308 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4032/1.825, allocations: 95.98 MB / 1.025 GB, free: 143 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.39/30.22, allocations: 6.984 kB / 1.025 GB, free: 143 MB / 0.6075 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