Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.001079, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 59.22 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.09259, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01096/0.1036, allocations: 10.19 MB / 367.8 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.188/0.2916, allocations: 3.809 MB / 371.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.2935, allocations: 54.12 kB / 371.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003733/0.2973, allocations: 1.936 MB / 373.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003838/0.3011, allocations: 1.628 MB / 375.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.3024, allocations: 0.6068 MB / 375.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004255/0.3067, allocations: 3.354 MB / 379.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003159/0.3098, allocations: 2.568 MB / 381.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.312, allocations: 1.233 MB / 383 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.3139, allocations: 1.664 MB / 384.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000553/0.3145, allocations: 253.8 kB / 384.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.3166, allocations: 1.017 MB / 385.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00146/0.3181, allocations: 1.542 MB / 387.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.3197, allocations: 1.817 MB / 389.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005269/0.325, allocations: 5.584 MB / 394.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.325, allocations: 0 / 394.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.325, allocations: 0 / 394.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001271/0.3251, allocations: 0 / 394.8 MB, free: 1.406 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.007361/0.3325, allocations: 4.007 MB / 398.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.3326, allocations: 9.438 kB / 398.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007449/0.3333, allocations: 0.6058 MB / 399.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006182/0.3395, allocations: 1.784 MB / 401.2 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/0.3435, allocations: 2.114 MB / 403.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.3436, allocations: 195.4 kB / 403.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004335/0.3441, allocations: 255.5 kB / 403.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.3564, allocations: 8.446 MB / 412.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.073e-05/0.3565, allocations: 35.69 kB / 412.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003209/0.3568, allocations: 125.9 kB / 412.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002646/0.3595, allocations: 1.697 MB / 414.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.372, allocations: 7.106 MB / 421.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03874/0.4107, allocations: 34.16 MB / 455.4 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007456/0.4182, allocations: 3.286 MB / 458.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.42, allocations: 1.462 MB / 460.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006314/0.4263, allocations: 4.453 MB / 464.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.4264, allocations: 43.12 kB / 464.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 4.358e-06/0.4264, allocations: 7.656 kB / 464.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.03113/0.4575, allocations: 11.56 MB / 476.2 MB, free: 248 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.265e-05/0.4577, allocations: 149.2 kB / 476.3 MB, free: 68 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007081/0.4648, allocations: 3.717 MB / 480 MB, free: 12.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002665/0.465, allocations: 44.75 kB / 480.1 MB, free: 12.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002555/0.4676, allocations: 2.742 MB / 482.8 MB, free: 9.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000842/0.4685, allocations: 0.5211 MB / 483.3 MB, free: 9.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002327/0.4708, allocations: 1.067 MB / 484.4 MB, free: 7.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4709, allocations: 309.1 kB / 484.7 MB, free: 7.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003029/0.474, allocations: 1.701 MB / 486.4 MB, free: 5.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004952/0.4789, allocations: 5.127 MB / 491.5 MB, free: 15.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007924/0.4869, allocations: 7.405 MB / 498.9 MB, free: 5.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.957e-05/0.487, allocations: 36 kB / 499 MB, free: 5.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01119/0.4982, allocations: 6.712 MB / 0.4938 GB, free: 15.24 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-05/0.4983, allocations: 59.94 kB / 0.4939 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001943/0.4985, allocations: 128 kB / 0.494 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006884/0.4992, allocations: 321.3 kB / 0.4943 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00373/0.5029, allocations: 1.244 MB / 0.4955 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002824/0.5057, allocations: 2.493 MB / 0.498 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003545/0.5093, allocations: 283.5 kB / 0.4982 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005568/0.5099, allocations: 336 kB / 0.4986 GB, free: 10.25 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[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],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002981/0.5129, allocations: 1.794 MB / 0.5003 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005809/0.5135, allocations: 308.1 kB / 0.5006 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00482/0.5183, allocations: 2.37 MB / 0.5029 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.769e-05/0.5183, allocations: 20 kB / 0.5029 GB, free: 5.727 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.5183, allocations: 4 kB / 0.5029 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.5184, allocations: 3.984 kB / 0.5029 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.53, allocations: 5.933 MB / 0.5087 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.53, allocations: 0 / 0.5087 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008175/0.5309, allocations: 179.7 kB / 0.5089 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/0.533, allocations: 0.7152 MB / 0.5096 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.5331, allocations: 20 kB / 0.5096 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005852/0.539, allocations: 4.814 MB / 0.5143 GB, free: 9.883 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.539, allocations: 7.938 kB / 0.5143 GB, free: 9.875 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006746/0.5458, allocations: 4.34 MB / 0.5186 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008934/0.5467, allocations: 360.9 kB / 0.5189 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006193/0.5473, allocations: 20 kB / 0.5189 GB, free: 5.109 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.5487, allocations: 71.91 kB / 0.519 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.5489, allocations: 68.5 kB / 0.5191 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.549, allocations: 43.94 kB / 0.5191 GB, free: 4.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004332/0.5534, allocations: 2.319 MB / 0.5214 GB, free: 2.625 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5534, allocations: 0 / 0.5214 GB, free: 2.625 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005258/0.5586, allocations: 0.8008 MB / 0.5222 GB, free: 1.824 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1839/0.7425, allocations: 4.966 MB / 0.527 GB, free: 141.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006503/0.7491, allocations: 4.416 MB / 0.5313 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.7491, allocations: 0 / 0.5313 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.7506, allocations: 1.11 MB / 0.5324 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/0.7529, allocations: 380.3 kB / 0.5328 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0437/0.7967, allocations: 42.18 MB / 0.574 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002231/0.7989, allocations: 2.776 MB / 0.5767 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003308/0.8022, allocations: 1.661 MB / 0.5783 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00145/0.8037, allocations: 1.526 MB / 0.5798 GB, free: 100.3 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.8037, allocations: 0 / 0.5798 GB, free: 100.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08455/0.8883, allocations: 60.99 MB / 0.6393 GB, free: 39.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.61, allocations: 11.5 kB / 0.6394 GB, free: 39.63 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches