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.001322/0.001322, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 71.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3267, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01213/0.3389, allocations: 10.19 MB / 419 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008009/0.3469, allocations: 3.787 MB / 422.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002012/0.349, allocations: 55.81 kB / 422.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004092/0.3532, allocations: 1.954 MB / 424.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004562/0.3577, allocations: 1.622 MB / 426.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001738/0.3595, allocations: 0.6121 MB / 427 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00563/0.3651, allocations: 3.357 MB / 430.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00354/0.3687, allocations: 2.563 MB / 432.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.371, allocations: 1.234 MB / 434.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002619/0.3737, allocations: 1.666 MB / 435.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006828/0.3744, allocations: 252 kB / 436.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002346/0.3768, allocations: 1.014 MB / 437.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001878/0.3787, allocations: 1.539 MB / 438.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002562/0.3812, allocations: 1.817 MB / 440.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0078/0.3891, allocations: 5.812 MB / 446.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.3891, allocations: 0 / 446.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3891, allocations: 4 kB / 446.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001975/0.3893, allocations: 0 / 446.2 MB, free: 11.87 MB / 366.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.008973/0.3983, allocations: 4.117 MB / 450.4 MB, free: 7.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.3984, allocations: 8.031 kB / 450.4 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001277/0.3997, allocations: 0.6121 MB / 451 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00657/0.4063, allocations: 1.804 MB / 452.8 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004765/0.411, allocations: 2.162 MB / 454.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.4113, allocations: 188.8 kB / 455.1 MB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008675/0.4122, allocations: 255.8 kB / 455.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01589/0.4281, allocations: 8.45 MB / 463.8 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.4282, allocations: 35.7 kB / 463.9 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005678/0.4288, allocations: 127.9 kB / 464 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003016/0.4318, allocations: 1.699 MB / 465.7 MB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/0.4464, allocations: 7.114 MB / 472.8 MB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04389/0.4904, allocations: 34.07 MB / 0.495 GB, free: 13.42 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008069/0.4985, allocations: 3.287 MB / 0.4982 GB, free: 9.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00219/0.5007, allocations: 1.466 MB / 0.4996 GB, free: 8.504 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008759/0.5095, allocations: 4.453 MB / 0.504 GB, free: 3.824 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/0.5096, allocations: 47.06 kB / 0.504 GB, free: 3.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.97e-06/0.5096, allocations: 0 / 0.504 GB, free: 3.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.03376/0.5434, allocations: 11.76 MB / 0.5155 GB, free: 7.883 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.5436, allocations: 149 kB / 0.5157 GB, free: 7.707 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/0.5508, allocations: 3.734 MB / 0.5193 GB, free: 3.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003764/0.5512, allocations: 41.7 kB / 0.5193 GB, free: 3.934 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002941/0.5542, allocations: 2.858 MB / 0.5221 GB, free: 1.051 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008889/0.5551, allocations: 0.539 MB / 0.5227 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/0.5569, allocations: 1.084 MB / 0.5237 GB, free: 15.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.5571, allocations: 301.1 kB / 0.524 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00302/0.5601, allocations: 1.697 MB / 0.5257 GB, free: 13.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007129/0.5673, allocations: 5.123 MB / 0.5307 GB, free: 6.559 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2938/0.8612, allocations: 7.403 MB / 0.5379 GB, free: 118.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/0.8614, allocations: 38.81 kB / 0.5379 GB, free: 118.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01185/0.8733, allocations: 6.73 MB / 0.5445 GB, free: 116.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.8734, allocations: 56.72 kB / 0.5446 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/0.8736, allocations: 123 kB / 0.5447 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005694/0.8742, allocations: 317.8 kB / 0.545 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003639/0.8778, allocations: 1.238 MB / 0.5462 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.88, allocations: 2.495 MB / 0.5486 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003785/0.8838, allocations: 285.2 kB / 0.5489 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006902/0.8845, allocations: 333.8 kB / 0.5492 GB, free: 114.1 MB / 462.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.002177/0.8867, allocations: 1.788 MB / 0.551 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005002/0.8872, allocations: 326.5 kB / 0.5513 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003903/0.8911, allocations: 2.379 MB / 0.5536 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-05/0.8912, allocations: 13.94 kB / 0.5536 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.8912, allocations: 3.938 kB / 0.5536 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.8912, allocations: 7.719 kB / 0.5536 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009217/0.9004, allocations: 5.918 MB / 0.5594 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/0.9005, allocations: 7.938 kB / 0.5594 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007493/0.9012, allocations: 171.8 kB / 0.5596 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001857/0.9031, allocations: 0.7164 MB / 0.5603 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.9032, allocations: 20 kB / 0.5603 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004451/0.9077, allocations: 4.819 MB / 0.565 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.9077, allocations: 3.938 kB / 0.565 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005487/0.9132, allocations: 4.359 MB / 0.5693 GB, free: 98.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000748/0.914, allocations: 375.4 kB / 0.5696 GB, free: 98.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/0.9142, allocations: 20 kB / 0.5696 GB, free: 98.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009829/0.9152, allocations: 67.84 kB / 0.5697 GB, free: 98.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.9154, allocations: 80.08 kB / 0.5698 GB, free: 98.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.291e-05/0.9155, allocations: 32 kB / 0.5698 GB, free: 98.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003204/0.9188, allocations: 2.319 MB / 0.5721 GB, free: 95.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9188, allocations: 0 / 0.5721 GB, free: 95.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004415/0.9232, allocations: 0.8011 MB / 0.5728 GB, free: 95 MB / 462.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.005677/0.9289, allocations: 4.989 MB / 0.5777 GB, free: 89.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00507/0.934, allocations: 4.041 MB / 0.5817 GB, free: 85.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.934, allocations: 0 / 0.5817 GB, free: 85.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.9352, allocations: 1.12 MB / 0.5828 GB, free: 84.83 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.9372, allocations: 386.8 kB / 0.5831 GB, free: 84.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04328/0.9805, allocations: 37.71 MB / 0.62 GB, free: 41.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002283/0.9829, allocations: 2.784 MB / 0.6227 GB, free: 38.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002976/0.9859, allocations: 1.664 MB / 0.6243 GB, free: 37.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/0.9876, allocations: 1.515 MB / 0.6258 GB, free: 35.59 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/0.9876, allocations: 0 / 0.6258 GB, free: 35.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1164/1.104, allocations: 57.46 MB / 0.6819 GB, free: 10.52 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.53/24.63, allocations: 3.5 kB / 0.6819 GB, free: 10.52 MB / 494.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.1.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