Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001623/0.001623, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2381/0.2381, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 75.88 kB / 480.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3323, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01303/0.3453, allocations: 11.94 MB / 0.5422 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009143/0.3545, allocations: 4.395 MB / 0.5465 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002046/0.3566, allocations: 75.12 kB / 0.5465 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005553/0.3622, allocations: 2.746 MB / 0.5492 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0058/0.368, allocations: 2.054 MB / 0.5512 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002575/0.3706, allocations: 1.01 MB / 0.5522 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007784/0.3784, allocations: 5.357 MB / 0.5575 GB, free: 6.117 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005791/0.3843, allocations: 3.439 MB / 0.5608 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003149/0.3875, allocations: 1.756 MB / 0.5625 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003703/0.3912, allocations: 2.434 MB / 0.5649 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.3924, allocations: 368 kB / 0.5653 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003029/0.3954, allocations: 1.4 MB / 0.5666 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00246/0.3979, allocations: 2.19 MB / 0.5688 GB, free: 10.47 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003655/0.4016, allocations: 2.555 MB / 0.5713 GB, free: 7.902 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009539/0.4112, allocations: 8.226 MB / 0.5793 GB, free: 15.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4112, allocations: 0 / 0.5793 GB, free: 15.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4112, allocations: 3.938 kB / 0.5793 GB, free: 15.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002196/0.4114, allocations: 0 / 0.5793 GB, free: 15.64 MB / 446.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.0147/0.4261, allocations: 6.014 MB / 0.5852 GB, free: 9.547 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4262, allocations: 12.03 kB / 0.5852 GB, free: 9.535 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001851/0.4281, allocations: 0.7985 MB / 0.586 GB, free: 8.727 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07772/0.5058, allocations: 7.246 MB / 0.593 GB, free: 1.469 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008526/0.5144, allocations: 3.622 MB / 0.5966 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002641/0.5147, allocations: 253.3 kB / 0.5968 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001346/0.516, allocations: 343.8 kB / 0.5971 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02506/0.5411, allocations: 12.28 MB / 0.6091 GB, free: 108 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002518/0.5414, allocations: 51.58 kB / 0.6092 GB, free: 56 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001261/0.5427, allocations: 171.8 kB / 0.6093 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004338/0.547, allocations: 2.373 MB / 0.6117 GB, free: 13.51 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02177/0.5688, allocations: 10.7 MB / 0.6221 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06698/0.6358, allocations: 48.65 MB / 0.6696 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01556/0.6515, allocations: 5.867 MB / 0.6754 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00426/0.6558, allocations: 3.108 MB / 0.6784 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02372/0.6795, allocations: 13.02 MB / 0.6911 GB, free: 10.24 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.591e-05/0.6796, allocations: 55.81 kB / 0.6912 GB, free: 10.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=193): time 6.944e-06/0.6797, allocations: 0 / 0.6912 GB, free: 10.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=254): time 0.401/1.081, allocations: 38.94 MB / 0.7292 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/1.081, allocations: 211.5 kB / 0.7294 GB, free: 161 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006471/1.087, allocations: 4.396 MB / 0.7337 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007883/1.088, allocations: 61.45 kB / 0.7337 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002748/1.091, allocations: 3.57 MB / 0.7372 GB, free: 157 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00148/1.092, allocations: 0.9848 MB / 0.7382 GB, free: 156.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002078/1.094, allocations: 1.374 MB / 0.7395 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.277e-05/1.095, allocations: 316.4 kB / 0.7398 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003794/1.098, allocations: 3.115 MB / 0.7429 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00575/1.104, allocations: 7.034 MB / 0.7497 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/1.117, allocations: 10.96 MB / 0.7604 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002005/1.117, allocations: 40 kB / 0.7605 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02321/1.14, allocations: 12.68 MB / 0.7729 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/1.14, allocations: 64 kB / 0.7729 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001669/1.14, allocations: 136 kB / 0.7731 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008211/1.149, allocations: 3.245 MB / 0.7762 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005189/1.154, allocations: 1.536 MB / 0.7777 GB, free: 117.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01954/1.173, allocations: 16.61 MB / 0.794 GB, free: 101.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00586/1.179, allocations: 439.4 kB / 0.7944 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00131/1.181, allocations: 411.6 kB / 0.7948 GB, free: 100.2 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.00435/1.185, allocations: 2.341 MB / 0.7971 GB, free: 97.89 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009983/1.186, allocations: 421.2 kB / 0.7975 GB, free: 97.48 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/1.199, allocations: 7.519 MB / 0.8048 GB, free: 89.94 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.95e-05/1.199, allocations: 24 kB / 0.8048 GB, free: 89.91 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-05/1.199, allocations: 19.94 kB / 0.8048 GB, free: 89.89 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.877e-05/1.199, allocations: 11.95 kB / 0.8048 GB, free: 89.88 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02495/1.224, allocations: 15.04 MB / 0.8195 GB, free: 74.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-05/1.224, allocations: 4 kB / 0.8195 GB, free: 74.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001941/1.226, allocations: 379.4 kB / 0.8199 GB, free: 74.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007538/1.233, allocations: 2.927 MB / 0.8228 GB, free: 71.53 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004919/1.234, allocations: 43.94 kB / 0.8228 GB, free: 71.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01713/1.251, allocations: 14.82 MB / 0.8373 GB, free: 56.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.251, allocations: 4.109 kB / 0.8373 GB, free: 56.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01682/1.268, allocations: 11.51 MB / 0.8485 GB, free: 44.94 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/1.269, allocations: 477 kB / 0.849 GB, free: 44.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006126/1.27, allocations: 36 kB / 0.849 GB, free: 44.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002082/1.272, allocations: 191.5 kB / 0.8492 GB, free: 44.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005486/1.272, allocations: 153.7 kB / 0.8493 GB, free: 44.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/1.273, allocations: 60 kB / 0.8494 GB, free: 44.02 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003165/1.276, allocations: 2.742 MB / 0.8521 GB, free: 41.28 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/1.276, allocations: 4 kB / 0.8521 GB, free: 41.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007084/1.283, allocations: 1.304 MB / 0.8533 GB, free: 39.97 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.0163/1.299, allocations: 12.16 MB / 0.8652 GB, free: 27.74 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01107/1.31, allocations: 7.87 MB / 0.8729 GB, free: 19.88 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/1.31, allocations: 0 / 0.8729 GB, free: 19.88 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004135/1.314, allocations: 3.129 MB / 0.876 GB, free: 16.74 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/1.318, allocations: 0.5126 MB / 0.8765 GB, free: 16.24 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1021/1.42, allocations: 60.74 MB / 0.9358 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006434/1.426, allocations: 3.662 MB / 0.9394 GB, free: 9.523 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005011/1.431, allocations: 2.172 MB / 0.9415 GB, free: 7.344 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003598/1.435, allocations: 2.218 MB / 0.9436 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of SimCode: time 8.52e-07/1.435, allocations: 4 kB / 0.9436 GB, free: 5.121 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4451/1.88, allocations: 94.24 MB / 1.036 GB, free: 145.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.61/30.49, allocations: 9.828 kB / 1.036 GB, free: 145.1 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv","/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_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches