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.SpringMassSystem.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.SpringMassSystem,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001559/0.001559, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001598/0.001598, allocations: 198 kB / 18.73 MB, free: 4.312 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.432/1.432, 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.001935/0.001935, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.283, allocations: 50.54 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01268/0.2957, allocations: 10.67 MB / 419.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00839/0.3041, allocations: 3.896 MB / 423.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001901/0.3061, allocations: 63.81 kB / 423.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004817/0.311, allocations: 2.215 MB / 425.9 MB, free: 452 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005179/0.3162, allocations: 1.796 MB / 427.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001908/0.3181, allocations: 0.7175 MB / 428.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006642/0.3248, allocations: 4.312 MB / 432.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004362/0.3292, allocations: 2.892 MB / 435.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003026/0.3323, allocations: 1.468 MB / 437.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003574/0.3359, allocations: 2.072 MB / 439.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001194/0.3371, allocations: 292 kB / 439.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002646/0.3398, allocations: 0.9167 MB / 440.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002592/0.3424, allocations: 1.792 MB / 442.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003773/0.3462, allocations: 2.089 MB / 444.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009413/0.3557, allocations: 6.399 MB / 450.7 MB, free: 7.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3557, allocations: 4 kB / 450.7 MB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3557, allocations: 0 / 450.7 MB, free: 7.578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002575/0.356, allocations: 0 / 450.7 MB, free: 7.578 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01103/0.367, allocations: 4.709 MB / 455.4 MB, free: 2.793 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.3671, allocations: 8.031 kB / 455.4 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001524/0.3687, allocations: 0.6873 MB / 456.1 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007897/0.3766, allocations: 1.967 MB / 458 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00574/0.3823, allocations: 2.695 MB / 460.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002612/0.3827, allocations: 225.6 kB / 460.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/0.3838, allocations: 299.8 kB / 461.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01826/0.402, allocations: 9.651 MB / 470.9 MB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001429/0.4022, allocations: 47.58 kB / 470.9 MB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006625/0.4029, allocations: 147.9 kB / 471.1 MB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003181/0.4061, allocations: 1.919 MB / 473 MB, free: 316 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/0.4222, allocations: 7.645 MB / 480.6 MB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04918/0.4714, allocations: 37.69 MB / 0.5062 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007333/0.4788, allocations: 2.893 MB / 0.509 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.4804, allocations: 0.8691 MB / 0.5099 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006984/0.4874, allocations: 3.852 MB / 0.5136 GB, free: 9.805 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.042e-05/0.4876, allocations: 43.22 kB / 0.5137 GB, free: 9.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.957e-06/0.4876, allocations: 4 kB / 0.5137 GB, free: 9.746 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02476/0.5123, allocations: 9.288 MB / 0.5227 GB, free: 372 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.5125, allocations: 141.5 kB / 0.5229 GB, free: 200 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00673/0.5192, allocations: 3.937 MB / 0.5267 GB, free: 12.28 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002678/0.5196, allocations: 45.7 kB / 0.5268 GB, free: 12.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002747/0.5223, allocations: 3.209 MB / 0.5299 GB, free: 8.988 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007858/0.5231, allocations: 0.6358 MB / 0.5305 GB, free: 8.348 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001585/0.5247, allocations: 1.163 MB / 0.5317 GB, free: 7.172 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5249, allocations: 305.1 kB / 0.5319 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00271/0.5276, allocations: 1.573 MB / 0.5335 GB, free: 5.293 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2392/0.7668, allocations: 5.331 MB / 0.5387 GB, free: 118.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007809/0.7747, allocations: 7.532 MB / 0.546 GB, free: 112.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001688/0.7749, allocations: 35.38 kB / 0.5461 GB, free: 112.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01037/0.7853, allocations: 6.65 MB / 0.5526 GB, free: 110 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.656e-05/0.7854, allocations: 64.5 kB / 0.5526 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001399/0.7856, allocations: 135.5 kB / 0.5528 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001355/0.7857, allocations: 174.4 kB / 0.5529 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003721/0.7894, allocations: 1.375 MB / 0.5543 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001721/0.7896, allocations: 258.3 kB / 0.5545 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003788/0.7934, allocations: 296.2 kB / 0.5548 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006614/0.7941, allocations: 364.2 kB / 0.5551 GB, free: 109.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002622/0.7968, allocations: 1.977 MB / 0.5571 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000489/0.7973, allocations: 361.3 kB / 0.5574 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006706/0.7979, allocations: 395 kB / 0.5578 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-05/0.798, allocations: 19.7 kB / 0.5578 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.798, allocations: 7.562 kB / 0.5578 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.798, allocations: 7.031 kB / 0.5578 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00816/0.8062, allocations: 5.757 MB / 0.5635 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/0.8062, allocations: 20 kB / 0.5635 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009153/0.8072, allocations: 273.7 kB / 0.5637 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-05/0.8072, allocations: 24.5 kB / 0.5638 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-05/0.8073, allocations: 55.8 kB / 0.5638 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.011e-05/0.8073, allocations: 35.72 kB / 0.5638 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/0.8073, allocations: 29.94 kB / 0.5639 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003033/0.8104, allocations: 3.26 MB / 0.5671 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008715/0.8113, allocations: 424.5 kB / 0.5675 GB, free: 99.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005025/0.8118, allocations: 51.89 kB / 0.5675 GB, free: 99.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.8131, allocations: 55.73 kB / 0.5676 GB, free: 99.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.8133, allocations: 150.8 kB / 0.5677 GB, free: 99.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.552e-05/0.8134, allocations: 63.89 kB / 0.5678 GB, free: 99.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003278/0.8167, allocations: 2.441 MB / 0.5701 GB, free: 97.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8167, allocations: 0 / 0.5701 GB, free: 97.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004564/0.8213, allocations: 0.8406 MB / 0.571 GB, free: 96.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003498/0.8248, allocations: 3.931 MB / 0.5748 GB, free: 92.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00515/0.83, allocations: 3.666 MB / 0.5784 GB, free: 88.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.71e-05/0.83, allocations: 4 kB / 0.5784 GB, free: 88.69 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009401/0.831, allocations: 0.738 MB / 0.5791 GB, free: 87.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/0.834, allocations: 458.9 kB / 0.5796 GB, free: 87.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04625/0.8803, allocations: 40.39 MB / 0.619 GB, free: 40.87 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003158/0.8835, allocations: 3.097 MB / 0.622 GB, free: 37.74 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003459/0.887, allocations: 1.764 MB / 0.6237 GB, free: 35.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/0.8891, allocations: 1.784 MB / 0.6255 GB, free: 34.18 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.8891, allocations: 0 / 0.6255 GB, free: 34.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/0.9906, allocations: 55.98 MB / 0.6802 GB, free: 10.66 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.29/19.28, allocations: 8.125 kB / 0.6802 GB, free: 10.66 MB / 494.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)