Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001563/0.001563, allocations: 104.1 kB / 17.58 MB, free: 5.445 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.001792/0.001792, allocations: 191.9 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.644/2.644, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 47.92 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1826, allocations: 46.65 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01709/0.1998, allocations: 7.425 MB / 334.8 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.2124, allocations: 3.239 MB / 338.1 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.2147, allocations: 35.94 kB / 338.1 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004183/0.219, allocations: 1.027 MB / 339.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007095/0.2261, allocations: 1.362 MB / 340.5 MB, free: 7.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002196/0.2283, allocations: 467.1 kB / 340.9 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007012/0.2354, allocations: 2.637 MB / 343.6 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004677/0.2401, allocations: 1.536 MB / 345.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003026/0.2432, allocations: 0.8407 MB / 345.9 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003856/0.2471, allocations: 1.219 MB / 347.2 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001203/0.2484, allocations: 172 kB / 347.3 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004651/0.2531, allocations: 1.026 MB / 348.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002703/0.2558, allocations: 1.122 MB / 349.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00409/0.26, allocations: 1.308 MB / 350.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.2704, allocations: 4.202 MB / 355 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.528e-05/0.2705, allocations: 0 / 355 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.2706, allocations: 4 kB / 355 MB, free: 8.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002434/0.2708, allocations: 0 / 355 MB, free: 8.648 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01467/0.2855, allocations: 3.074 MB / 358.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.094e-05/0.2856, allocations: 11.97 kB / 358.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002113/0.2878, allocations: 462.9 kB / 358.5 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01373/0.3015, allocations: 1.752 MB / 360.3 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007312/0.3089, allocations: 1.843 MB / 362.1 MB, free: 1.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003075/0.3093, allocations: 127.3 kB / 362.3 MB, free: 1.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002007/0.3113, allocations: 259.6 kB / 362.5 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0257/0.3371, allocations: 6.652 MB / 369.2 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002865/0.3375, allocations: 31.7 kB / 369.2 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001644/0.3392, allocations: 91.88 kB / 369.3 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00489/0.3441, allocations: 1.37 MB / 370.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02334/0.3675, allocations: 6.029 MB / 376.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3616/0.7292, allocations: 25.61 MB / 402.3 MB, free: 32.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/0.7418, allocations: 2.669 MB / 405 MB, free: 30.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002733/0.7446, allocations: 1.036 MB / 406 MB, free: 30.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009528/0.7542, allocations: 3.85 MB / 409.8 MB, free: 27.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.842e-05/0.7543, allocations: 50.56 kB / 409.9 MB, free: 27.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 8.276e-06/0.7544, allocations: 0 / 409.9 MB, free: 27.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.04822/0.8026, allocations: 10.35 MB / 420.2 MB, free: 19.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002318/0.805, allocations: 1.679 MB / 421.9 MB, free: 18.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008069/0.8131, allocations: 2.754 MB / 424.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000521/0.8137, allocations: 41.7 kB / 424.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002172/0.8159, allocations: 2.085 MB / 426.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001356/0.8174, allocations: 0.5085 MB / 427.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002896/0.8203, allocations: 0.9121 MB / 428.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.801e-05/0.8204, allocations: 301.1 kB / 428.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003993/0.8244, allocations: 1.625 MB / 430.1 MB, free: 9.855 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006342/0.8308, allocations: 4.424 MB / 434.6 MB, free: 4.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01224/0.8431, allocations: 6.497 MB / 441.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001786/0.8433, allocations: 28 kB / 441.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.02681/0.8702, allocations: 7.033 MB / 448.1 MB, free: 5.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002248/0.8705, allocations: 48 kB / 448.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01175/0.8822, allocations: 2.541 MB / 450.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009695/0.892, allocations: 1.497 MB / 452.2 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006312/0.8984, allocations: 1.002 MB / 453.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01933/0.9178, allocations: 7.784 MB / 461 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007035/0.9249, allocations: 315.6 kB / 461.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/0.9263, allocations: 287.9 kB / 461.6 MB, free: 7.297 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005161/0.9315, allocations: 1.422 MB / 463 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009505/0.9324, allocations: 232.9 kB / 463.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/0.9451, allocations: 2.842 MB / 466.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01156/0.9567, allocations: 2.513 MB / 468.6 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-05/0.9569, allocations: 4 kB / 468.6 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.041e-05/0.957, allocations: 15.91 kB / 468.6 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02848/0.9855, allocations: 6.877 MB / 475.5 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.707e-05/0.9857, allocations: 0 / 475.5 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001863/0.9875, allocations: 176.6 kB / 475.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009521/0.9971, allocations: 1.445 MB / 477.1 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005074/0.9977, allocations: 23.98 kB / 477.1 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02028/1.018, allocations: 7.934 MB / 485.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001925/1.02, allocations: 1.529 MB / 486.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01794/1.038, allocations: 4.859 MB / 491.4 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/1.039, allocations: 294 kB / 491.7 MB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/1.04, allocations: 27.98 kB / 491.8 MB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002562/1.043, allocations: 107.8 kB / 491.9 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006123/1.044, allocations: 88.38 kB / 491.9 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002728/1.044, allocations: 32.69 kB / 492 MB, free: 8.309 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005517/1.049, allocations: 1.709 MB / 493.7 MB, free: 6.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.049, allocations: 0 / 493.7 MB, free: 6.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00824/1.058, allocations: 0.7644 MB / 494.5 MB, free: 5.828 MB / 382.1 MB 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.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01965/1.077, allocations: 5.507 MB / 500 MB, free: 276 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01613/1.094, allocations: 4.671 MB / 0.4928 GB, free: 11.58 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/1.094, allocations: 0 / 0.4928 GB, free: 11.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006218/1.1, allocations: 1.717 MB / 0.4945 GB, free: 9.816 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004241/1.104, allocations: 272.2 kB / 0.4947 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.116/1.22, allocations: 36.09 MB / 0.53 GB, free: 340 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2936/1.514, allocations: 2.299 MB / 0.5322 GB, free: 150.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.006842/1.521, allocations: 1.407 MB / 0.5336 GB, free: 150.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002859/1.524, allocations: 1.114 MB / 0.5347 GB, free: 150.6 MB / 430.1 MB Notification: Performance of SimCode: time 1.713e-06/1.524, allocations: 3.969 kB / 0.5347 GB, free: 150.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1585/1.682, allocations: 51.48 MB / 0.585 GB, free: 111.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.25/21.93, allocations: 7.719 kB / 0.585 GB, free: 111.8 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches