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.001263/0.001263, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.001304/0.001304, allocations: 196.1 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002283/0.002284, allocations: 59.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1176, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01337/0.131, allocations: 7.433 MB / 334.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009339/0.1404, allocations: 3.239 MB / 338.1 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.1415, allocations: 31.94 kB / 338.1 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003073/0.1446, allocations: 1.024 MB / 339.1 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004337/0.149, allocations: 1.374 MB / 340.5 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.1504, allocations: 455.2 kB / 340.9 MB, free: 6.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004778/0.1551, allocations: 2.637 MB / 343.6 MB, free: 4.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002453/0.1576, allocations: 1.536 MB / 345.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.159, allocations: 0.8447 MB / 346 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001731/0.1607, allocations: 1.215 MB / 347.2 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003389/0.1611, allocations: 168 kB / 347.3 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001894/0.163, allocations: 1.034 MB / 348.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.1641, allocations: 1.11 MB / 349.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001429/0.1655, allocations: 1.316 MB / 350.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005953/0.1715, allocations: 4.206 MB / 355 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/0.1716, allocations: 0 / 355 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1716, allocations: 0 / 355 MB, free: 8.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000182/0.1718, allocations: 0 / 355 MB, free: 8.645 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.007409/0.1792, allocations: 3.063 MB / 358.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.1793, allocations: 12.03 kB / 358.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006752/0.18, allocations: 478.8 kB / 358.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006909/0.1869, allocations: 1.744 MB / 360.3 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003721/0.1906, allocations: 1.839 MB / 362.1 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.1908, allocations: 135.3 kB / 362.3 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006569/0.1914, allocations: 255.6 kB / 362.5 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.2031, allocations: 6.66 MB / 369.2 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.522e-05/0.2032, allocations: 35.66 kB / 369.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002762/0.2035, allocations: 87.89 kB / 369.3 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002353/0.2058, allocations: 1.363 MB / 370.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/0.2181, allocations: 6.029 MB / 376.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.205/0.4232, allocations: 25.61 MB / 402.3 MB, free: 32.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006701/0.4299, allocations: 2.669 MB / 405 MB, free: 30.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.4312, allocations: 1.04 MB / 406 MB, free: 30.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004603/0.4358, allocations: 3.854 MB / 409.8 MB, free: 27.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.4359, allocations: 46.59 kB / 409.9 MB, free: 27.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.236e-06/0.4359, allocations: 0 / 409.9 MB, free: 27.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02457/0.4604, allocations: 10.34 MB / 420.2 MB, free: 19.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000895/0.4614, allocations: 1.674 MB / 421.9 MB, free: 18.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/0.4642, allocations: 2.758 MB / 424.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001928/0.4644, allocations: 37.7 kB / 424.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007858/0.4652, allocations: 2.09 MB / 426.8 MB, free: 13.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003621/0.4656, allocations: 0.501 MB / 427.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009007/0.4665, allocations: 0.9118 MB / 428.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.117e-05/0.4665, allocations: 301.1 kB / 428.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.4684, allocations: 1.621 MB / 430.1 MB, free: 9.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002793/0.4712, allocations: 4.432 MB / 434.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006681/0.4779, allocations: 6.499 MB / 441.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.768e-05/0.478, allocations: 30.53 kB / 441.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01491/0.4929, allocations: 7.041 MB / 448.1 MB, free: 5.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.158e-05/0.493, allocations: 48.22 kB / 448.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006516/0.4995, allocations: 2.544 MB / 450.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005497/0.505, allocations: 1.494 MB / 452.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003292/0.5083, allocations: 1.002 MB / 453.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/0.5201, allocations: 7.782 MB / 461 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.5238, allocations: 319.6 kB / 461.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006528/0.5244, allocations: 288 kB / 461.6 MB, free: 7.316 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.002317/0.5268, allocations: 1.413 MB / 463 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004696/0.5272, allocations: 236.9 kB / 463.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007381/0.5346, allocations: 2.838 MB / 466.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006558/0.5412, allocations: 2.515 MB / 468.6 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-05/0.5413, allocations: 8.094 kB / 468.6 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.837e-05/0.5413, allocations: 15.95 kB / 468.6 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/0.5562, allocations: 6.874 MB / 475.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.332e-05/0.5562, allocations: 8.094 kB / 475.5 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009001/0.5572, allocations: 175.7 kB / 475.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005249/0.5624, allocations: 1.44 MB / 477.1 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000181/0.5626, allocations: 35.97 kB / 477.1 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/0.5743, allocations: 7.914 MB / 485 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001279/0.5756, allocations: 1.541 MB / 486.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00979/0.5854, allocations: 4.848 MB / 491.4 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006882/0.5861, allocations: 294 kB / 491.7 MB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003061/0.5865, allocations: 27.98 kB / 491.8 MB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.5877, allocations: 116.3 kB / 491.9 MB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.588, allocations: 80.33 kB / 491.9 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.5881, allocations: 43.97 kB / 492 MB, free: 8.309 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002661/0.5908, allocations: 1.701 MB / 493.7 MB, free: 6.598 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5908, allocations: 0 / 493.7 MB, free: 6.598 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003995/0.5948, allocations: 0.7667 MB / 494.5 MB, free: 5.84 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.009964/0.6048, allocations: 5.494 MB / 499.9 MB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008982/0.6138, allocations: 4.682 MB / 0.4928 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.6138, allocations: 0 / 0.4928 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003619/0.6175, allocations: 1.717 MB / 0.4945 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.6194, allocations: 267.4 kB / 0.4947 GB, free: 9.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05833/0.6777, allocations: 36.11 MB / 0.53 GB, free: 340 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1488/0.8266, allocations: 2.298 MB / 0.5322 GB, free: 150.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003573/0.8302, allocations: 1.406 MB / 0.5336 GB, free: 150.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/0.8315, allocations: 1.116 MB / 0.5347 GB, free: 150.4 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.8315, allocations: 0 / 0.5347 GB, free: 150.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08761/0.9191, allocations: 51.47 MB / 0.585 GB, free: 111.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/14.21, allocations: 15.84 kB / 0.585 GB, free: 111.6 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