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.Surfaces.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.Surfaces,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001488/0.001488, allocations: 117.6 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.001489/0.001489, allocations: 200.7 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.433/1.433, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001908/0.001908, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2969, allocations: 50.54 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.01085/0.3078, allocations: 9.002 MB / 418.1 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006177/0.3141, allocations: 2.721 MB / 420.8 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001115/0.3152, allocations: 47.88 kB / 420.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003612/0.3189, allocations: 1.834 MB / 422.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003402/0.3223, allocations: 1.315 MB / 424 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.3229, allocations: 215.7 kB / 424.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003112/0.326, allocations: 2.343 MB / 426.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002617/0.3286, allocations: 2.105 MB / 428.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.3302, allocations: 1.004 MB / 429.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003197/0.3334, allocations: 2.447 MB / 432.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005429/0.334, allocations: 188 kB / 432.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.3351, allocations: 0.4993 MB / 432.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001162/0.3363, allocations: 1.274 MB / 434.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.3378, allocations: 1.572 MB / 435.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005564/0.3434, allocations: 4.854 MB / 440.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3434, allocations: 0 / 440.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.3435, allocations: 0 / 440.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001232/0.3436, allocations: 3.938 kB / 440.5 MB, free: 1.801 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: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.006769/0.3504, allocations: 3.706 MB / 444.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3504, allocations: 16.03 kB / 444.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007873/0.3512, allocations: 0.5424 MB / 444.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006171/0.3574, allocations: 1.714 MB / 446.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003004/0.3604, allocations: 1.601 MB / 448.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.3606, allocations: 151.8 kB / 448.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004045/0.361, allocations: 191.9 kB / 448.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.3713, allocations: 6.986 MB / 455.4 MB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.78e-05/0.3714, allocations: 27.75 kB / 455.4 MB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002744/0.3717, allocations: 103.9 kB / 455.5 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002277/0.374, allocations: 1.562 MB / 457.1 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009661/0.3837, allocations: 5.489 MB / 462.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03127/0.415, allocations: 27.18 MB / 489.8 MB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00297/0.418, allocations: 1.633 MB / 491.4 MB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007851/0.4188, allocations: 0.5057 MB / 491.9 MB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0042/0.423, allocations: 2.694 MB / 494.6 MB, free: 9.758 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.4231, allocations: 50.48 kB / 494.6 MB, free: 9.699 MB / 414.1 MB Notification: Performance of pre-optimization done (n=89): time 2.986e-06/0.4231, allocations: 0 / 494.6 MB, free: 9.699 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.003994/0.4271, allocations: 1.77 MB / 496.4 MB, free: 7.926 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.4273, allocations: 217.6 kB / 496.6 MB, free: 7.664 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00556/0.4328, allocations: 3.681 MB / 0.4886 GB, free: 3.992 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.433, allocations: 37.7 kB / 0.4886 GB, free: 3.949 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002554/0.4356, allocations: 2.792 MB / 0.4913 GB, free: 1.129 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005187/0.4361, allocations: 405.1 kB / 0.4917 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.4374, allocations: 0.9607 MB / 0.4927 GB, free: 15.76 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4375, allocations: 301.1 kB / 0.493 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001866/0.4394, allocations: 1.208 MB / 0.4941 GB, free: 14.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00483/0.4442, allocations: 4.53 MB / 0.4986 GB, free: 8.016 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008996/0.4533, allocations: 6.287 MB / 0.5047 GB, free: 56 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001128/0.4534, allocations: 40 kB / 0.5047 GB, free: 16 kB / 430.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01041/0.4638, allocations: 5.454 MB / 0.5101 GB, free: 10.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.61e-05/0.464, allocations: 59.98 kB / 0.5101 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/0.4641, allocations: 120 kB / 0.5102 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000156/0.4643, allocations: 155.9 kB / 0.5104 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002928/0.4672, allocations: 1.084 MB / 0.5114 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001913/0.4674, allocations: 227.1 kB / 0.5117 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003227/0.4706, allocations: 0.7023 MB / 0.5123 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004288/0.4711, allocations: 316 kB / 0.5126 GB, free: 7.906 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (589): * Single equations (assignments): 585 * Array equations: 4 * 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.002466/0.4735, allocations: 1.712 MB / 0.5143 GB, free: 6.184 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005069/0.4741, allocations: 321.9 kB / 0.5146 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009212/0.475, allocations: 494.2 kB / 0.5151 GB, free: 5.379 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.044e-05/0.4751, allocations: 27.98 kB / 0.5151 GB, free: 5.352 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.4751, allocations: 288 / 0.5151 GB, free: 5.352 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.4751, allocations: 7.984 kB / 0.5151 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005565/0.4807, allocations: 3.146 MB / 0.5182 GB, free: 2.113 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.4807, allocations: 7.938 kB / 0.5182 GB, free: 2.105 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004678/0.4812, allocations: 104.1 kB / 0.5183 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.4812, allocations: 15.94 kB / 0.5183 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.4812, allocations: 12 kB / 0.5183 GB, free: 1.977 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.121e-05/0.4813, allocations: 11.98 kB / 0.5183 GB, free: 1.965 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.4813, allocations: 7.938 kB / 0.5184 GB, free: 1.957 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002557/0.4838, allocations: 2.231 MB / 0.5205 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007184/0.4846, allocations: 446.7 kB / 0.521 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002536/0.4848, allocations: 23.88 kB / 0.521 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008032/0.4856, allocations: 27.97 kB / 0.521 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.4858, allocations: 51.89 kB / 0.5211 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-05/0.4858, allocations: 31.98 kB / 0.5211 GB, free: 15.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003582/0.4894, allocations: 2.333 MB / 0.5234 GB, free: 12.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4894, allocations: 0 / 0.5234 GB, free: 12.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003588/0.493, allocations: 0.8028 MB / 0.5241 GB, free: 11.96 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 2 (prismatic.v,position.s) * 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 (58): * Single equations (assignments): 54 * Array equations: 4 * 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.003064/0.4961, allocations: 2.853 MB / 0.5269 GB, free: 9.051 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004703/0.5008, allocations: 2.809 MB / 0.5297 GB, free: 6.266 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.5009, allocations: 8.375 kB / 0.5297 GB, free: 6.258 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006216/0.5015, allocations: 436.2 kB / 0.5301 GB, free: 5.832 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/0.5038, allocations: 393.4 kB / 0.5305 GB, free: 5.449 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2506/0.7544, allocations: 33.25 MB / 0.5629 GB, free: 101.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/0.7563, allocations: 2.678 MB / 0.5656 GB, free: 98.88 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002821/0.7592, allocations: 1.491 MB / 0.567 GB, free: 97.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001441/0.7606, allocations: 1.464 MB / 0.5684 GB, free: 95.93 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7606, allocations: 0 / 0.5684 GB, free: 95.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/0.8664, allocations: 47.47 MB / 0.6148 GB, free: 48.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/17.3, allocations: 6.75 kB / 0.6148 GB, free: 48.88 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_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_Surfaces.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1)