Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001888/0.001888, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00216/0.00216, allocations: 201.2 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.501/1.501, allocations: 227.7 MB / 247.2 MB, free: 10.22 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.001918/0.001918, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2871, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006255/0.2934, allocations: 4.59 MB / 413.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002973/0.2964, allocations: 1.399 MB / 415.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005259/0.297, allocations: 27.81 kB / 415.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004734/0.2975, allocations: 182.2 kB / 415.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004374/0.298, allocations: 162.3 kB / 415.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009101/0.2989, allocations: 371.4 kB / 415.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.3, allocations: 0.986 MB / 416.8 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006264/0.3006, allocations: 418.9 kB / 417.2 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005731/0.3012, allocations: 330.6 kB / 417.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003715/0.3016, allocations: 346 kB / 417.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.771e-05/0.3017, allocations: 72 kB / 417.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002565/0.302, allocations: 119.9 kB / 418 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.3022, allocations: 175.3 kB / 418.2 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004072/0.3026, allocations: 429.5 kB / 418.6 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.3039, allocations: 1.107 MB / 419.7 MB, free: 6.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3039, allocations: 0 / 419.7 MB, free: 6.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3039, allocations: 0 / 419.7 MB, free: 6.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.304, allocations: 0 / 419.7 MB, free: 6.648 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001684/0.3056, allocations: 1.168 MB / 420.9 MB, free: 5.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3057, allocations: 15.95 kB / 420.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.3058, allocations: 123 kB / 421 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.3061, allocations: 123.3 kB / 421.1 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009686/0.3071, allocations: 0.635 MB / 421.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.965e-05/0.3071, allocations: 61.94 kB / 421.8 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.3072, allocations: 83.95 kB / 421.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.3086, allocations: 0.8481 MB / 422.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.361e-05/0.3086, allocations: 7.938 kB / 422.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.3087, allocations: 39.98 kB / 422.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.3087, allocations: 24 kB / 422.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008793/0.3096, allocations: 467.3 kB / 423.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003884/0.3135, allocations: 4.389 MB / 427.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005993/0.3141, allocations: 299.5 kB / 428 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.3144, allocations: 153.5 kB / 428.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002131/0.3146, allocations: 166.5 kB / 428.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.3146, allocations: 38.94 kB / 428.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.104e-06/0.3147, allocations: 0 / 428.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003436/0.3181, allocations: 1.743 MB / 430.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.3182, allocations: 67.84 kB / 430.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000653/0.3188, allocations: 0.5392 MB / 430.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.3189, allocations: 33.7 kB / 430.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.3192, allocations: 487.8 kB / 431.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.3194, allocations: 226.1 kB / 431.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.3196, allocations: 146.6 kB / 431.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3198, allocations: 378.8 kB / 431.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.3201, allocations: 161.9 kB / 432.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005219/0.3206, allocations: 455.2 kB / 432.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008895/0.3215, allocations: 0.6556 MB / 433.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3215, allocations: 8 kB / 433.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001206/0.3228, allocations: 0.7427 MB / 433.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.3228, allocations: 11.98 kB / 433.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.3228, allocations: 12.16 kB / 434 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.323, allocations: 44.84 kB / 434 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005844/0.3236, allocations: 183.7 kB / 434.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/0.3251, allocations: 1.685 MB / 435.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.3254, allocations: 35.98 kB / 435.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.3255, allocations: 32 kB / 435.9 MB, free: 5.406 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * Array equations: 0 * 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.0003329/0.3258, allocations: 233.5 kB / 436.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.326, allocations: 79.53 kB / 436.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.3261, allocations: 75.08 kB / 436.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3261, allocations: 8.031 kB / 436.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.3261, allocations: 4 kB / 436.3 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3261, allocations: 7.922 kB / 436.3 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.3281, allocations: 1.41 MB / 437.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3281, allocations: 352 / 437.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004759/0.3286, allocations: 123.8 kB / 437.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.844e-05/0.3287, allocations: 24.86 kB / 437.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.3288, allocations: 12.12 kB / 437.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.3298, allocations: 1.386 MB / 439.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3298, allocations: 4 kB / 439.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.3309, allocations: 0.7779 MB / 440.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.331, allocations: 140.6 kB / 440.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.51e-05/0.3311, allocations: 16 kB / 440.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.3313, allocations: 12.09 kB / 440.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/0.3314, allocations: 43.83 kB / 440.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.3314, allocations: 23.98 kB / 440.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004098/0.3318, allocations: 363.1 kB / 440.7 MB, free: 364 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3318, allocations: 0 / 440.7 MB, free: 364 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006463/0.3325, allocations: 136 kB / 440.8 MB, free: 228 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.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 (56): * Single equations (assignments): 55 * Array equations: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/0.3339, allocations: 1.341 MB / 442.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.335, allocations: 0.5987 MB / 442.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.335, allocations: 1.688 kB / 442.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004224/0.3354, allocations: 307.1 kB / 443 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006289/0.3361, allocations: 109 kB / 443.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008048/0.3441, allocations: 6.074 MB / 449.2 MB, free: 7.297 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006115/0.3448, allocations: 0.9691 MB / 450.2 MB, free: 6.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002645/0.3451, allocations: 81.97 kB / 450.3 MB, free: 6.219 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.3455, allocations: 323.3 kB / 450.6 MB, free: 5.902 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3455, allocations: 0 / 450.6 MB, free: 5.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05906/0.4045, allocations: 11.89 MB / 462.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.15, allocations: 10.94 kB / 462.5 MB, free: 10.22 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)