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.001525/0.001525, allocations: 109 kB / 16.51 MB, free: 6.707 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.001822/0.001822, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.35/1.35, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009731/0.0009732, allocations: 50.95 kB / 300.1 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08817, allocations: 49.44 MB / 349.5 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01706/0.1053, allocations: 17.91 MB / 367.4 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1759/0.2812, allocations: 5.028 MB / 372.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003888/0.2851, allocations: 73.34 kB / 372.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002791/0.288, allocations: 1.003 MB / 373.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004756/0.2928, allocations: 1.275 MB / 374.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001519/0.2943, allocations: 415.5 kB / 375.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006357/0.3007, allocations: 3.609 MB / 378.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002906/0.3036, allocations: 1.512 MB / 380.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001679/0.3053, allocations: 0.7342 MB / 381.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002388/0.3077, allocations: 1.299 MB / 382.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005195/0.3082, allocations: 114.2 kB / 382.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002075/0.3103, allocations: 1.04 MB / 383.5 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009976/0.3113, allocations: 1.07 MB / 384.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.3124, allocations: 1.271 MB / 385.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00345/0.3159, allocations: 4.164 MB / 390 MB, free: 3.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3159, allocations: 0 / 390 MB, free: 3.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3159, allocations: 0 / 390 MB, free: 3.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.821e-05/0.3159, allocations: 0 / 390 MB, free: 3.801 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.004725/0.3207, allocations: 3.06 MB / 393.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3207, allocations: 9.625 kB / 393.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004577/0.3212, allocations: 481.8 kB / 393.6 MB, free: 1.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005843/0.327, allocations: 1.737 MB / 395.3 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002762/0.3298, allocations: 1.698 MB / 397 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.185e-05/0.3299, allocations: 142 kB / 397.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005878/0.3305, allocations: 257.5 kB / 397.4 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009801/0.3403, allocations: 6.654 MB / 404 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001335/0.3405, allocations: 39.64 kB / 404.1 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003573/0.3408, allocations: 88.05 kB / 404.2 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002297/0.3432, allocations: 1.359 MB / 405.5 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/0.3536, allocations: 6.033 MB / 411.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02993/0.3836, allocations: 25.59 MB / 437.2 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007327/0.391, allocations: 2.654 MB / 439.8 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/0.3929, allocations: 1.036 MB / 440.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006657/0.3996, allocations: 3.864 MB / 444.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.3996, allocations: 47.12 kB / 444.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 4.629e-06/0.3997, allocations: 0 / 444.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02785/0.4275, allocations: 10.29 MB / 455 MB, free: 4.816 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001294/0.4289, allocations: 1.584 MB / 456.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004344/0.4332, allocations: 2.738 MB / 459.4 MB, free: 308 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002621/0.4335, allocations: 41.7 kB / 459.4 MB, free: 260 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001527/0.4351, allocations: 2.101 MB / 461.5 MB, free: 14.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006409/0.4357, allocations: 0.5052 MB / 462 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001592/0.4373, allocations: 0.9108 MB / 462.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.336e-05/0.4374, allocations: 305.1 kB / 463.2 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002499/0.4399, allocations: 1.621 MB / 464.8 MB, free: 10.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004038/0.444, allocations: 4.424 MB / 469.3 MB, free: 5.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00677/0.4507, allocations: 6.488 MB / 475.8 MB, free: 13.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-05/0.4508, allocations: 32 kB / 475.8 MB, free: 13.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01365/0.4645, allocations: 7.048 MB / 482.8 MB, free: 6.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-05/0.4646, allocations: 48 kB / 482.9 MB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006025/0.4706, allocations: 2.545 MB / 485.4 MB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005132/0.4758, allocations: 1.489 MB / 486.9 MB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003049/0.4789, allocations: 1.002 MB / 487.9 MB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009778/0.4887, allocations: 7.218 MB / 495.1 MB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004046/0.4927, allocations: 324.7 kB / 495.4 MB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007105/0.4935, allocations: 284 kB / 495.7 MB, free: 8.895 MB / 414.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.00266/0.4961, allocations: 1.422 MB / 497.1 MB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000535/0.4967, allocations: 229 kB / 497.4 MB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006884/0.5036, allocations: 2.837 MB / 0.4885 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005919/0.5095, allocations: 2.517 MB / 0.4909 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/0.5095, allocations: 4 kB / 0.4909 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.278e-05/0.5096, allocations: 7.984 kB / 0.491 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01552/0.5251, allocations: 6.855 MB / 0.4976 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/0.5252, allocations: 8.094 kB / 0.4977 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008677/0.526, allocations: 179.7 kB / 0.4978 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004918/0.531, allocations: 1.437 MB / 0.4992 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002233/0.5312, allocations: 34.31 kB / 0.4993 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009987/0.5412, allocations: 7.311 MB / 0.5064 GB, free: 1.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00108/0.5423, allocations: 1.466 MB / 0.5078 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009519/0.5519, allocations: 4.857 MB / 0.5126 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008524/0.5527, allocations: 294.1 kB / 0.5129 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005857/0.5534, allocations: 27.94 kB / 0.5129 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/0.5549, allocations: 111.8 kB / 0.513 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003552/0.5552, allocations: 84.31 kB / 0.5131 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.5554, allocations: 35.98 kB / 0.5131 GB, free: 10.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003297/0.5587, allocations: 1.697 MB / 0.5148 GB, free: 8.887 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5587, allocations: 0 / 0.5148 GB, free: 8.887 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004223/0.5629, allocations: 0.768 MB / 0.5155 GB, free: 8.121 MB / 446.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.009236/0.5722, allocations: 5.509 MB / 0.5209 GB, free: 2.566 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1686/0.7407, allocations: 4.317 MB / 0.5251 GB, free: 154.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.7408, allocations: 1.344 kB / 0.5251 GB, free: 154.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003319/0.7441, allocations: 1.717 MB / 0.5268 GB, free: 154.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.746, allocations: 259.1 kB / 0.527 GB, free: 154.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04925/0.7953, allocations: 37.08 MB / 0.5632 GB, free: 128.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001749/0.7971, allocations: 2.294 MB / 0.5655 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002815/0.7999, allocations: 1.403 MB / 0.5669 GB, free: 124.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/0.8011, allocations: 1.116 MB / 0.5679 GB, free: 123.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8011, allocations: 7.938 kB / 0.568 GB, free: 123.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1818/0.9829, allocations: 50.21 MB / 0.617 GB, free: 73.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002362/0.9831, allocations: 250.6 kB / 0.6172 GB, free: 73.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.029/4.012, allocations: 6.969 kB / 0.6172 GB, free: 73.25 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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