Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_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.001212/0.001212, allocations: 112.7 kB / 17.07 MB, free: 5.984 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.001308/0.001308, allocations: 195 kB / 18 MB, free: 5.074 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.445/1.445, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3191, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01003/0.3292, allocations: 7.438 MB / 407.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00724/0.3365, allocations: 3.238 MB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001356/0.3379, allocations: 35.88 kB / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002752/0.3407, allocations: 1.02 MB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004785/0.3455, allocations: 1.4 MB / 413.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001429/0.347, allocations: 463.1 kB / 413.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004554/0.3516, allocations: 2.641 MB / 416.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.3543, allocations: 1.508 MB / 418 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001791/0.3561, allocations: 0.8524 MB / 418.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.3582, allocations: 1.219 MB / 420 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007119/0.359, allocations: 168 kB / 420.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.3616, allocations: 1.03 MB / 421.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001595/0.3632, allocations: 1.114 MB / 422.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002284/0.3655, allocations: 1.301 MB / 423.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006187/0.3717, allocations: 4.391 MB / 428 MB, free: 12.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.3718, allocations: 7.938 kB / 428.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3718, allocations: 0 / 428.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001723/0.372, allocations: 0 / 428.1 MB, free: 12.85 MB / 350.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.008564/0.3805, allocations: 3.136 MB / 431.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.3806, allocations: 8.031 kB / 431.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001231/0.3818, allocations: 478.9 kB / 431.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007467/0.3893, allocations: 1.758 MB / 433.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004414/0.3938, allocations: 1.714 MB / 435.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.394, allocations: 131.3 kB / 435.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/0.3952, allocations: 259.7 kB / 435.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01505/0.4102, allocations: 6.66 MB / 442.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001566/0.4104, allocations: 35.7 kB / 442.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007856/0.4112, allocations: 79.91 kB / 442.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002623/0.4139, allocations: 1.367 MB / 443.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01336/0.4273, allocations: 6.037 MB / 449.7 MB, free: 6.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03956/0.4669, allocations: 25.54 MB / 475.2 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007777/0.4747, allocations: 2.683 MB / 477.9 MB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001746/0.4765, allocations: 1.028 MB / 479 MB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007427/0.484, allocations: 3.861 MB / 482.8 MB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.192e-05/0.4841, allocations: 51.06 kB / 482.9 MB, free: 4.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 5.38e-06/0.4841, allocations: 0 / 482.9 MB, free: 4.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.03109/0.5152, allocations: 10.43 MB / 493.3 MB, free: 9.691 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001598/0.5168, allocations: 1.671 MB / 495 MB, free: 7.844 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005179/0.5221, allocations: 2.75 MB / 497.7 MB, free: 5.074 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002936/0.5224, allocations: 45.69 kB / 497.8 MB, free: 5.023 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/0.5241, allocations: 2.171 MB / 499.9 MB, free: 2.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008768/0.525, allocations: 0.5311 MB / 0.4887 GB, free: 2.293 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002372/0.5274, allocations: 0.9133 MB / 0.4896 GB, free: 1.367 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.5276, allocations: 309 kB / 0.4899 GB, free: 1.062 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003118/0.5307, allocations: 1.625 MB / 0.4915 GB, free: 15.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00555/0.5363, allocations: 4.425 MB / 0.4958 GB, free: 9.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008359/0.5447, allocations: 6.494 MB / 0.5022 GB, free: 1.711 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000101/0.5448, allocations: 28 kB / 0.5022 GB, free: 1.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01624/0.5611, allocations: 7.044 MB / 0.5091 GB, free: 10.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.5613, allocations: 48 kB / 0.5091 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006831/0.5681, allocations: 2.54 MB / 0.5116 GB, free: 8.023 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005705/0.5739, allocations: 1.496 MB / 0.5131 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/0.5777, allocations: 1.006 MB / 0.514 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01184/0.5896, allocations: 7.774 MB / 0.5216 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004066/0.5937, allocations: 323.7 kB / 0.5219 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009406/0.5947, allocations: 288.4 kB / 0.5222 GB, free: 12.86 MB / 462.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.003465/0.5982, allocations: 1.427 MB / 0.5236 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007383/0.5989, allocations: 242.4 kB / 0.5238 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007548/0.6065, allocations: 2.842 MB / 0.5266 GB, free: 8.316 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00647/0.613, allocations: 2.509 MB / 0.5291 GB, free: 5.789 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.633e-05/0.6131, allocations: 15.86 kB / 0.5291 GB, free: 5.773 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-05/0.6131, allocations: 3.984 kB / 0.5291 GB, free: 5.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2481/0.8612, allocations: 6.858 MB / 0.5358 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.333e-05/0.8613, allocations: 2.125 kB / 0.5358 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009767/0.8622, allocations: 179.5 kB / 0.536 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005151/0.8674, allocations: 1.434 MB / 0.5374 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002762/0.8677, allocations: 31.17 kB / 0.5374 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009173/0.8769, allocations: 7.925 MB / 0.5451 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008694/0.8778, allocations: 1.545 MB / 0.5466 GB, free: 123.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008243/0.8861, allocations: 4.871 MB / 0.5514 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007812/0.8869, allocations: 298 kB / 0.5517 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005913/0.8875, allocations: 27.09 kB / 0.5517 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/0.8891, allocations: 106.7 kB / 0.5518 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003265/0.8895, allocations: 82.47 kB / 0.5519 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.8896, allocations: 39.34 kB / 0.5519 GB, free: 121.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002749/0.8924, allocations: 1.7 MB / 0.5536 GB, free: 121.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8924, allocations: 0 / 0.5536 GB, free: 121.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00411/0.8965, allocations: 0.7668 MB / 0.5543 GB, free: 121.1 MB / 462.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.008795/0.9053, allocations: 5.526 MB / 0.5597 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00705/0.9124, allocations: 4.341 MB / 0.564 GB, free: 111.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.9125, allocations: 4 kB / 0.564 GB, free: 111.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002971/0.9155, allocations: 1.723 MB / 0.5657 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/0.9179, allocations: 266.7 kB / 0.5659 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04799/0.966, allocations: 33.78 MB / 0.5989 GB, free: 71.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002519/0.9685, allocations: 2.301 MB / 0.6011 GB, free: 69.65 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002727/0.9713, allocations: 1.404 MB / 0.6025 GB, free: 68.24 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/0.9728, allocations: 1.12 MB / 0.6036 GB, free: 67.12 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9728, allocations: 0.875 kB / 0.6036 GB, free: 67.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.113/1.086, allocations: 48.65 MB / 0.6511 GB, free: 18.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.9/18.98, allocations: 12 kB / 0.6511 GB, free: 18.83 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches