Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_1_0-beta_om_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.001337/0.001337, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 204.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.485/1.485, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 75.88 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2956, allocations: 50.53 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01319/0.3089, allocations: 10.2 MB / 419.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008688/0.3176, allocations: 3.791 MB / 423.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00181/0.3195, allocations: 59.81 kB / 423.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004544/0.3241, allocations: 1.95 MB / 425.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00499/0.3291, allocations: 1.626 MB / 426.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.331, allocations: 0.6082 MB / 427.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00596/0.337, allocations: 3.354 MB / 430.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004277/0.3413, allocations: 2.567 MB / 433.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002783/0.3442, allocations: 1.23 MB / 434.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003457/0.3477, allocations: 1.662 MB / 436.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001166/0.3489, allocations: 256 kB / 436.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003066/0.352, allocations: 1.014 MB / 437.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002585/0.3546, allocations: 1.543 MB / 438.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003575/0.3582, allocations: 1.817 MB / 440.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008834/0.3671, allocations: 5.812 MB / 446.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.3672, allocations: 0 / 446.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.659e-06/0.3672, allocations: 0 / 446.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002048/0.3674, allocations: 3.938 kB / 446.6 MB, free: 11.69 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.01024/0.3776, allocations: 4.113 MB / 450.7 MB, free: 7.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.3777, allocations: 8.031 kB / 450.7 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001578/0.3793, allocations: 0.6082 MB / 451.3 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007999/0.3873, allocations: 1.8 MB / 453.1 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004726/0.3921, allocations: 2.166 MB / 455.3 MB, free: 2.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.3923, allocations: 192.8 kB / 455.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007768/0.3931, allocations: 255.8 kB / 455.7 MB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01637/0.4095, allocations: 8.443 MB / 464.1 MB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001599/0.4097, allocations: 43.64 kB / 464.2 MB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008341/0.4105, allocations: 123.9 kB / 464.3 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003283/0.4138, allocations: 1.695 MB / 466 MB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01581/0.4297, allocations: 7.122 MB / 473.1 MB, free: 316 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0486/0.4783, allocations: 34.08 MB / 0.4953 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008095/0.4865, allocations: 3.287 MB / 0.4985 GB, free: 9.801 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002281/0.4888, allocations: 1.463 MB / 0.4999 GB, free: 8.324 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007811/0.4966, allocations: 4.457 MB / 0.5043 GB, free: 3.641 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.43e-05/0.4967, allocations: 43.12 kB / 0.5043 GB, free: 3.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.509e-06/0.4967, allocations: 4 kB / 0.5043 GB, free: 3.586 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.03267/0.5294, allocations: 11.75 MB / 0.5158 GB, free: 7.707 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.5296, allocations: 145.1 kB / 0.516 GB, free: 7.535 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00624/0.5358, allocations: 3.726 MB / 0.5196 GB, free: 3.816 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003178/0.5362, allocations: 45.7 kB / 0.5196 GB, free: 3.766 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00273/0.5389, allocations: 2.862 MB / 0.5224 GB, free: 0.875 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008561/0.5398, allocations: 0.539 MB / 0.523 GB, free: 340 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002011/0.5418, allocations: 1.08 MB / 0.524 GB, free: 15.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.542, allocations: 305.1 kB / 0.5243 GB, free: 14.94 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003039/0.5451, allocations: 1.701 MB / 0.526 GB, free: 13.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006411/0.5515, allocations: 5.115 MB / 0.531 GB, free: 6.387 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.237/0.7886, allocations: 7.398 MB / 0.5382 GB, free: 118 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001466/0.7888, allocations: 36.25 kB / 0.5382 GB, free: 118 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01285/0.8016, allocations: 6.733 MB / 0.5448 GB, free: 116 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.8018, allocations: 60.62 kB / 0.5449 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/0.802, allocations: 121.6 kB / 0.545 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009123/0.8029, allocations: 319.1 kB / 0.5453 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005417/0.8084, allocations: 1.241 MB / 0.5465 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002329/0.8107, allocations: 2.493 MB / 0.5489 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004/0.8148, allocations: 295 kB / 0.5492 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007803/0.8156, allocations: 334.8 kB / 0.5495 GB, free: 113.8 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.00294/0.8185, allocations: 1.779 MB / 0.5513 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000627/0.8192, allocations: 325.4 kB / 0.5516 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004502/0.8237, allocations: 2.376 MB / 0.5539 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.964e-05/0.8238, allocations: 18.44 kB / 0.5539 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.8238, allocations: 3.75 kB / 0.5539 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.163e-05/0.8238, allocations: 3.797 kB / 0.5539 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.8345, allocations: 5.923 MB / 0.5597 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/0.8346, allocations: 3.938 kB / 0.5597 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008054/0.8354, allocations: 179.8 kB / 0.5599 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00203/0.8374, allocations: 0.7129 MB / 0.5606 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.8376, allocations: 24 kB / 0.5606 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00475/0.8423, allocations: 4.813 MB / 0.5653 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.8424, allocations: 0 / 0.5653 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005719/0.8481, allocations: 4.363 MB / 0.5696 GB, free: 98.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/0.8489, allocations: 378 kB / 0.5699 GB, free: 97.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005221/0.8495, allocations: 19.98 kB / 0.5699 GB, free: 97.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.8507, allocations: 67.92 kB / 0.57 GB, free: 97.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.851, allocations: 68.56 kB / 0.5701 GB, free: 97.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-05/0.8511, allocations: 43.81 kB / 0.5701 GB, free: 97.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003275/0.8543, allocations: 2.319 MB / 0.5724 GB, free: 95.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8544, allocations: 0 / 0.5724 GB, free: 95.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004505/0.8589, allocations: 0.7961 MB / 0.5731 GB, free: 94.64 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.006512/0.8654, allocations: 4.991 MB / 0.578 GB, free: 89.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005673/0.8712, allocations: 4.041 MB / 0.582 GB, free: 85.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.8712, allocations: 192 / 0.582 GB, free: 85.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.8727, allocations: 1.123 MB / 0.5831 GB, free: 84.46 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/0.8758, allocations: 398.8 kB / 0.5834 GB, free: 84.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04924/0.925, allocations: 37.69 MB / 0.6203 GB, free: 41.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00285/0.9279, allocations: 2.789 MB / 0.623 GB, free: 38.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003559/0.9315, allocations: 1.66 MB / 0.6246 GB, free: 36.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002307/0.9339, allocations: 1.522 MB / 0.6261 GB, free: 35.21 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.9339, allocations: 0 / 0.6261 GB, free: 35.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1138/1.048, allocations: 57.48 MB / 0.6822 GB, free: 10.22 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.11/24.16, allocations: 14.38 kB / 0.6822 GB, free: 10.21 MB / 494.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1)