Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.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.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Frames_AngularVelocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Frames_AngularVelocity",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.001511/0.001511, allocations: 103.5 kB / 17.63 MB, free: 5.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.001507/0.001507, allocations: 192 kB / 18.56 MB, free: 4.434 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.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.17 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.2227/0.2227, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.05 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1188, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Frames.AngularVelocity): time 0.0122/0.1311, allocations: 11.25 MB / 480.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008096/0.1392, allocations: 4.104 MB / 484.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.1411, allocations: 63.81 kB / 484.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005368/0.1465, allocations: 2.823 MB / 487.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005646/0.1523, allocations: 1.794 MB / 489.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002194/0.1545, allocations: 0.7019 MB / 490.1 MB, free: 9.473 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005615/0.1601, allocations: 3.689 MB / 493.8 MB, free: 5.777 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004878/0.165, allocations: 3.828 MB / 497.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003377/0.1684, allocations: 1.523 MB / 499.1 MB, free: 364 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003821/0.1722, allocations: 2.001 MB / 0.4894 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00131/0.1736, allocations: 336 kB / 0.4897 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.1771, allocations: 1.205 MB / 0.4909 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002615/0.1798, allocations: 1.886 MB / 0.4927 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004186/0.184, allocations: 2.202 MB / 0.4949 GB, free: 8.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008998/0.193, allocations: 6.756 MB / 0.5015 GB, free: 1.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.193, allocations: 8 kB / 0.5015 GB, free: 1.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.193, allocations: 0 / 0.5015 GB, free: 1.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002698/0.1933, allocations: 0 / 0.5015 GB, free: 1.922 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1504 * Number of variables: 1504 Notification: Performance of Generate backend data structure: time 0.2087/0.402, allocations: 4.65 MB / 0.506 GB, free: 46.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.4021, allocations: 9.75 kB / 0.506 GB, free: 46.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001356/0.4034, allocations: 0.718 MB / 0.5067 GB, free: 46.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006955/0.4104, allocations: 1.914 MB / 0.5086 GB, free: 45.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004742/0.4151, allocations: 2.492 MB / 0.511 GB, free: 44.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001913/0.4154, allocations: 244.7 kB / 0.5113 GB, free: 44.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001017/0.4164, allocations: 416.2 kB / 0.5117 GB, free: 44.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01949/0.4359, allocations: 9.91 MB / 0.5213 GB, free: 38.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001578/0.4361, allocations: 38.81 kB / 0.5214 GB, free: 38.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006182/0.4367, allocations: 158.9 kB / 0.5215 GB, free: 38.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002209/0.4389, allocations: 1.819 MB / 0.5233 GB, free: 38.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01468/0.4536, allocations: 8.207 MB / 0.5313 GB, free: 30.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03914/0.4928, allocations: 38.78 MB / 0.5692 GB, free: 6.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009271/0.5021, allocations: 3.693 MB / 0.5728 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002166/0.5043, allocations: 1.625 MB / 0.5744 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/0.5149, allocations: 7.808 MB / 0.582 GB, free: 8.941 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.515, allocations: 47.5 kB / 0.5821 GB, free: 8.887 MB / 414.1 MB Notification: Performance of pre-optimization done (n=141): time 4.128e-06/0.515, allocations: 0 / 0.5821 GB, free: 8.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=148): time 0.02905/0.5441, allocations: 12.34 MB / 0.5941 GB, free: 12.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00126/0.5454, allocations: 1.699 MB / 0.5958 GB, free: 10.49 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004874/0.5502, allocations: 3.853 MB / 0.5995 GB, free: 6.648 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003219/0.5506, allocations: 45.7 kB / 0.5996 GB, free: 6.598 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0019/0.5525, allocations: 3.047 MB / 0.6025 GB, free: 3.504 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007866/0.5533, allocations: 0.6019 MB / 0.6031 GB, free: 2.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001493/0.5548, allocations: 1.174 MB / 0.6043 GB, free: 1.707 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.5549, allocations: 309 kB / 0.6046 GB, free: 1.402 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002786/0.5577, allocations: 2.026 MB / 0.6065 GB, free: 15.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004868/0.5626, allocations: 5.656 MB / 0.6121 GB, free: 7.891 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009429/0.572, allocations: 8.263 MB / 0.6201 GB, free: 13.82 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/0.5722, allocations: 40 kB / 0.6202 GB, free: 13.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02102/0.5932, allocations: 8.84 MB / 0.6288 GB, free: 4.918 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.5934, allocations: 67.92 kB / 0.6289 GB, free: 4.852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01052/0.6039, allocations: 3.254 MB / 0.6321 GB, free: 1.586 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009495/0.6135, allocations: 1.848 MB / 0.6339 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00415/0.6176, allocations: 1.322 MB / 0.6351 GB, free: 14.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008948/0.6266, allocations: 6.117 MB / 0.6411 GB, free: 7.988 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004741/0.6314, allocations: 399.4 kB / 0.6415 GB, free: 7.598 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/0.6325, allocations: 360 kB / 0.6418 GB, free: 7.246 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 41 (FrameTorque1.arrow.arrowLine.twoHeadedArrow,FrameTorque1.arrow.headAtOrigin,FrameTorque1.color[3],FrameTorque1.color[2],FrameTorque1.color[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (712): * Single equations (assignments): 703 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004116/0.6366, allocations: 2.033 MB / 0.6438 GB, free: 5.199 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000865/0.6375, allocations: 323.8 kB / 0.6441 GB, free: 4.879 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006155/0.6436, allocations: 2.93 MB / 0.647 GB, free: 1.93 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004669/0.6483, allocations: 2.48 MB / 0.6494 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/0.6484, allocations: 4 kB / 0.6494 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/0.6484, allocations: 7.969 kB / 0.6494 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01739/0.6658, allocations: 8.547 MB / 0.6578 GB, free: 6.766 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/0.6658, allocations: 0 / 0.6578 GB, free: 6.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.6671, allocations: 251.5 kB / 0.658 GB, free: 6.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003159/0.6702, allocations: 1.041 MB / 0.659 GB, free: 5.465 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000241/0.6705, allocations: 35.98 kB / 0.6591 GB, free: 5.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006293/0.6768, allocations: 5.334 MB / 0.6643 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001116/0.678, allocations: 1.569 MB / 0.6658 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008693/0.6867, allocations: 5.189 MB / 0.6709 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.6879, allocations: 384.7 kB / 0.6712 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008532/0.6888, allocations: 36.45 kB / 0.6713 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001895/0.6907, allocations: 131.8 kB / 0.6714 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.6911, allocations: 88.86 kB / 0.6715 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/0.6912, allocations: 51.95 kB / 0.6715 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00427/0.6955, allocations: 2.377 MB / 0.6739 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.31e-07/0.6955, allocations: 3.938 kB / 0.6739 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004712/0.7002, allocations: 1.033 MB / 0.6749 GB, free: 4.785 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * 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 (114): * Single equations (assignments): 107 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009137/0.7094, allocations: 5.831 MB / 0.6806 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01087/0.7203, allocations: 6.066 MB / 0.6865 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/0.7204, allocations: 4 kB / 0.6865 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004239/0.7246, allocations: 2.143 MB / 0.6886 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/0.7282, allocations: 442 kB / 0.689 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2904/1.019, allocations: 50.98 MB / 0.7388 GB, free: 140.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003032/1.022, allocations: 3.164 MB / 0.7419 GB, free: 138.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003801/1.026, allocations: 1.811 MB / 0.7437 GB, free: 137.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001869/1.027, allocations: 1.788 MB / 0.7454 GB, free: 135.5 MB / 0.5137 GB Notification: Performance of SimCode: time 9.01e-07/1.027, allocations: 0 / 0.7454 GB, free: 135.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1048/1.132, allocations: 71.26 MB / 0.815 GB, free: 64.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.59, allocations: 10.41 kB / 0.815 GB, free: 64.59 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity_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_Frames_AngularVelocity.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Frames/AngularVelocity/AngularVelocity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Frames.AngularVelocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches