Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",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.001395/0.001395, allocations: 109.3 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.001712/0.001712, allocations: 192.1 kB / 18.72 MB, free: 4.336 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.463/1.463, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2084/0.2084, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.00133, allocations: 67.91 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3447, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.0128/0.3575, allocations: 12.31 MB / 0.5305 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009407/0.367, allocations: 3.938 MB / 0.5343 GB, free: 7.652 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002848/0.3699, allocations: 60.88 kB / 0.5344 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003425/0.3733, allocations: 1.308 MB / 0.5356 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005081/0.3785, allocations: 1.793 MB / 0.5374 GB, free: 5.531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00151/0.38, allocations: 495.3 kB / 0.5379 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005695/0.3858, allocations: 3.595 MB / 0.5414 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003314/0.3891, allocations: 2.017 MB / 0.5433 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002762/0.3919, allocations: 1.2 MB / 0.5445 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002924/0.3949, allocations: 1.721 MB / 0.5462 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008589/0.3958, allocations: 236 kB / 0.5464 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.3982, allocations: 0.9595 MB / 0.5474 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001899/0.4001, allocations: 1.593 MB / 0.5489 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003207/0.4034, allocations: 1.898 MB / 0.5508 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008559/0.412, allocations: 6.278 MB / 0.5569 GB, free: 4.605 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.412, allocations: 0 / 0.5569 GB, free: 4.605 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.412, allocations: 0 / 0.5569 GB, free: 4.605 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002312/0.4123, allocations: 0 / 0.5569 GB, free: 4.605 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01047/0.4227, allocations: 4.284 MB / 0.5611 GB, free: 252 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/0.4228, allocations: 8.031 kB / 0.5611 GB, free: 244 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001962/0.4248, allocations: 0.7083 MB / 0.5618 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.4361, allocations: 3.11 MB / 0.5648 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0059/0.4421, allocations: 2.221 MB / 0.567 GB, free: 10.13 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002239/0.4423, allocations: 185 kB / 0.5672 GB, free: 9.949 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001293/0.4436, allocations: 251.8 kB / 0.5674 GB, free: 9.703 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01812/0.4618, allocations: 10.48 MB / 0.5776 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001266/0.462, allocations: 23.77 kB / 0.5777 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008973/0.4629, allocations: 123.8 kB / 0.5778 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004352/0.4672, allocations: 2.549 MB / 0.5803 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01987/0.4871, allocations: 9.927 MB / 0.59 GB, free: 2.156 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05473/0.5419, allocations: 34.34 MB / 0.6235 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0096/0.5516, allocations: 5.174 MB / 0.6285 GB, free: 9.586 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/0.5547, allocations: 2.3 MB / 0.6308 GB, free: 7.285 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001681/0.5564, allocations: 1.884 MB / 0.6326 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.627e-05/0.5565, allocations: 48.56 kB / 0.6327 GB, free: 5.012 MB / 494.1 MB Notification: Performance of pre-optimization done (n=229): time 6.653e-06/0.5565, allocations: 3.938 kB / 0.6327 GB, free: 5.008 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.03395/0.5905, allocations: 14.06 MB / 0.6464 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.5906, allocations: 69.41 kB / 0.6465 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004213/0.5948, allocations: 2.652 MB / 0.6491 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003776/0.5952, allocations: 57.7 kB / 0.6491 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001995/0.5972, allocations: 2.745 MB / 0.6518 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001092/0.5983, allocations: 0.8875 MB / 0.6527 GB, free: 424 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002202/0.6005, allocations: 1.045 MB / 0.6537 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.6007, allocations: 305.1 kB / 0.654 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003493/0.6042, allocations: 2.189 MB / 0.6561 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005655/0.6098, allocations: 5.067 MB / 0.6611 GB, free: 6.391 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00941/0.6193, allocations: 7.957 MB / 0.6688 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/0.6194, allocations: 28 kB / 0.6689 GB, free: 13 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01466/0.6341, allocations: 7.885 MB / 0.6766 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.6343, allocations: 48 kB / 0.6766 GB, free: 5.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001669/0.6345, allocations: 104.2 kB / 0.6767 GB, free: 4.957 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/0.6369, allocations: 0.7888 MB / 0.6775 GB, free: 4.164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00414/0.641, allocations: 1.178 MB / 0.6786 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005966/0.647, allocations: 4.515 MB / 0.683 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/0.6506, allocations: 291.8 kB / 0.6833 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009511/0.6516, allocations: 308 kB / 0.6836 GB, free: 13.75 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (631): * Single equations (assignments): 624 * Array equations: 6 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004172/0.6558, allocations: 2.012 MB / 0.6856 GB, free: 11.72 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000721/0.6566, allocations: 278.2 kB / 0.6858 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009081/0.6657, allocations: 4.737 MB / 0.6905 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.123e-05/0.6658, allocations: 43.98 kB / 0.6905 GB, free: 6.641 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/0.6658, allocations: 7.938 kB / 0.6905 GB, free: 6.633 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.809e-05/0.6659, allocations: 7.969 kB / 0.6905 GB, free: 6.625 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02025/0.6861, allocations: 10.49 MB / 0.7008 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-05/0.6862, allocations: 16.11 kB / 0.7008 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.6878, allocations: 367.4 kB / 0.7011 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001976/0.6898, allocations: 0.6483 MB / 0.7018 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002893/0.6901, allocations: 43.98 kB / 0.7018 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004902/0.6951, allocations: 3.906 MB / 0.7056 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/0.6951, allocations: 12 kB / 0.7056 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.7058, allocations: 7.153 MB / 0.7126 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007715/0.7067, allocations: 319.2 kB / 0.7129 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006766/0.7073, allocations: 43.91 kB / 0.713 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/0.7089, allocations: 144.1 kB / 0.7131 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004033/0.7093, allocations: 136.9 kB / 0.7132 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002072/0.7095, allocations: 60 kB / 0.7133 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002837/0.7124, allocations: 1.635 MB / 0.7149 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.62e-07/0.7124, allocations: 0 / 0.7149 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00429/0.7167, allocations: 0.9257 MB / 0.7158 GB, free: 12.29 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.w) * 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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01128/0.728, allocations: 7.807 MB / 0.7234 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2452/0.9732, allocations: 5.376 MB / 0.7287 GB, free: 190.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.65e-05/0.9733, allocations: 1.312 kB / 0.7287 GB, free: 190.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003308/0.9766, allocations: 2.016 MB / 0.7306 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.979, allocations: 360.6 kB / 0.731 GB, free: 190 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05945/1.039, allocations: 39.71 MB / 0.7698 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003411/1.042, allocations: 3.169 MB / 0.7729 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00366/1.046, allocations: 1.958 MB / 0.7748 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00248/1.048, allocations: 1.706 MB / 0.7764 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.112e-06/1.048, allocations: 0 / 0.7764 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1119/1.16, allocations: 54.52 MB / 0.8297 GB, free: 99.27 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.98/22.14, allocations: 12.08 kB / 0.8297 GB, free: 99.26 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches