Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.00127/0.00127, allocations: 200 kB / 18.01 MB, free: 5.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.475/1.475, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009597/0.0009598, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2903, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.0109/0.3013, allocations: 10.23 MB / 410.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007343/0.3087, allocations: 3.775 MB / 414.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.3101, allocations: 55.81 kB / 414.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00347/0.3137, allocations: 1.954 MB / 416.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004166/0.3178, allocations: 1.7 MB / 418 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.3192, allocations: 0.6043 MB / 418.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005358/0.3246, allocations: 3.336 MB / 421.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003416/0.328, allocations: 2.567 MB / 424.5 MB, free: 472 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002344/0.3304, allocations: 1.246 MB / 425.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.3327, allocations: 1.666 MB / 427.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004894/0.3332, allocations: 252 kB / 427.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.335, allocations: 1.034 MB / 428.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.3364, allocations: 1.586 MB / 430.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001672/0.3381, allocations: 1.833 MB / 432.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006294/0.3444, allocations: 5.863 MB / 437.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.3445, allocations: 4 kB / 437.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3445, allocations: 0 / 437.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001749/0.3447, allocations: 0 / 437.9 MB, free: 2.934 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.009047/0.3537, allocations: 4.136 MB / 442.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.3538, allocations: 8.031 kB / 442.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001228/0.355, allocations: 0.6043 MB / 442.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006868/0.3619, allocations: 1.816 MB / 444.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006254/0.3682, allocations: 2.268 MB / 446.8 MB, free: 9.957 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.3684, allocations: 192.8 kB / 447 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007454/0.3692, allocations: 251.8 kB / 447.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01587/0.3851, allocations: 8.435 MB / 455.6 MB, free: 432 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001323/0.3852, allocations: 35.7 kB / 455.7 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000453/0.3857, allocations: 123.9 kB / 455.8 MB, free: 272 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002793/0.3885, allocations: 1.699 MB / 457.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.4024, allocations: 7.102 MB / 464.6 MB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04533/0.4478, allocations: 34.09 MB / 498.7 MB, free: 4.379 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008771/0.4566, allocations: 3.275 MB / 0.4902 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002187/0.4589, allocations: 1.456 MB / 0.4916 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008504/0.4674, allocations: 4.382 MB / 0.4959 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.4675, allocations: 47.06 kB / 0.4959 GB, free: 10.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.689e-06/0.4675, allocations: 4 kB / 0.4959 GB, free: 10.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.03319/0.5007, allocations: 11.7 MB / 0.5074 GB, free: 15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.5009, allocations: 145 kB / 0.5075 GB, free: 14.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006843/0.5077, allocations: 3.73 MB / 0.5112 GB, free: 11.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002603/0.508, allocations: 45.7 kB / 0.5112 GB, free: 11.06 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00254/0.5106, allocations: 2.87 MB / 0.514 GB, free: 8.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007676/0.5114, allocations: 0.5428 MB / 0.5145 GB, free: 7.613 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002268/0.5136, allocations: 1.08 MB / 0.5156 GB, free: 6.523 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.5138, allocations: 305.1 kB / 0.5159 GB, free: 6.223 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/0.5165, allocations: 1.697 MB / 0.5175 GB, free: 4.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005334/0.5218, allocations: 5.115 MB / 0.5225 GB, free: 13.67 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008937/0.5308, allocations: 7.4 MB / 0.5298 GB, free: 4.57 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001267/0.5309, allocations: 35.94 kB / 0.5298 GB, free: 4.535 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.2223/0.7533, allocations: 6.71 MB / 0.5363 GB, free: 125.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001842/0.7535, allocations: 57.75 kB / 0.5364 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003026/0.7538, allocations: 122.3 kB / 0.5365 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000768/0.7546, allocations: 327.5 kB / 0.5368 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003707/0.7583, allocations: 1.246 MB / 0.538 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002226/0.7606, allocations: 2.488 MB / 0.5405 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003479/0.7641, allocations: 288.2 kB / 0.5407 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004621/0.7645, allocations: 329.2 kB / 0.5411 GB, free: 123.6 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.002154/0.7667, allocations: 1.786 MB / 0.5428 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004758/0.7672, allocations: 327.4 kB / 0.5431 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/0.771, allocations: 2.372 MB / 0.5454 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.206e-05/0.771, allocations: 18.41 kB / 0.5454 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.7711, allocations: 5.781 kB / 0.5455 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.7711, allocations: 8.375 kB / 0.5455 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.7813, allocations: 5.911 MB / 0.5512 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.7813, allocations: 0 / 0.5512 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007634/0.7821, allocations: 166.8 kB / 0.5514 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.784, allocations: 0.7171 MB / 0.5521 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.7841, allocations: 32.02 kB / 0.5521 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00454/0.7887, allocations: 4.811 MB / 0.5568 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7887, allocations: 7.875 kB / 0.5568 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.7941, allocations: 4.338 MB / 0.5611 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008339/0.7949, allocations: 380 kB / 0.5614 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/0.7952, allocations: 16 kB / 0.5614 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009999/0.7962, allocations: 67.97 kB / 0.5615 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.7964, allocations: 72.5 kB / 0.5616 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-05/0.7965, allocations: 38.3 kB / 0.5616 GB, free: 111.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002537/0.799, allocations: 2.327 MB / 0.5639 GB, free: 109.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.799, allocations: 4 kB / 0.5639 GB, free: 109.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003744/0.8028, allocations: 0.8159 MB / 0.5647 GB, free: 108.2 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.005411/0.8082, allocations: 4.981 MB / 0.5696 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005242/0.8135, allocations: 4.024 MB / 0.5735 GB, free: 99.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.8135, allocations: 4 kB / 0.5735 GB, free: 99.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.8147, allocations: 1.117 MB / 0.5746 GB, free: 98.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/0.817, allocations: 391 kB / 0.5749 GB, free: 97.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03977/0.8568, allocations: 37.71 MB / 0.6118 GB, free: 54.87 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/0.859, allocations: 2.785 MB / 0.6145 GB, free: 52.06 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003119/0.8622, allocations: 1.656 MB / 0.6161 GB, free: 50.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001869/0.864, allocations: 1.522 MB / 0.6176 GB, free: 48.88 MB / 462.1 MB Notification: Performance of SimCode: time 1.432e-06/0.8641, allocations: 0 / 0.6176 GB, free: 48.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09168/0.9557, allocations: 57.6 MB / 0.6739 GB, free: 7.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.15/24.1, allocations: 7.75 kB / 0.6739 GB, free: 7.727 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches