Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.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.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_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.001281/0.001281, allocations: 121.8 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.001398/0.001398, allocations: 201.2 kB / 18.74 MB, free: 4.332 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.408/1.408, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.003161/0.003161, allocations: 67.89 kB / 358.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2759, allocations: 50.54 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007106/0.283, allocations: 6.023 MB / 415.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003273/0.2863, allocations: 1.73 MB / 416.8 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006706/0.287, allocations: 27.88 kB / 416.9 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005903/0.2877, allocations: 253.5 kB / 417.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006112/0.2883, allocations: 221.7 kB / 417.3 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.2894, allocations: 0.511 MB / 417.8 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00163/0.291, allocations: 1.407 MB / 419.3 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009296/0.292, allocations: 0.6169 MB / 419.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006763/0.2927, allocations: 478.1 kB / 420.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005533/0.2932, allocations: 0.4973 MB / 420.8 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.2934, allocations: 124 kB / 421 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002539/0.2937, allocations: 140 kB / 421.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.2939, allocations: 263 kB / 421.3 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005566/0.2945, allocations: 0.6139 MB / 422 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.2961, allocations: 1.625 MB / 423.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.2962, allocations: 8 kB / 423.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.2962, allocations: 0 / 423.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.348e-05/0.2962, allocations: 3.938 kB / 423.6 MB, free: 2.75 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002151/0.2984, allocations: 1.496 MB / 425.1 MB, free: 1.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2984, allocations: 8.031 kB / 425.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002019/0.2986, allocations: 181.7 kB / 425.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003799/0.299, allocations: 167 kB / 425.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.3002, allocations: 0.7672 MB / 426.2 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.597e-05/0.3003, allocations: 90.45 kB / 426.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.3005, allocations: 123.9 kB / 426.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.3025, allocations: 1.268 MB / 427.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/0.3026, allocations: 15.88 kB / 427.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.621e-05/0.3027, allocations: 52 kB / 427.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.3027, allocations: 32 kB / 427.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.304, allocations: 0.6851 MB / 428.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006256/0.3103, allocations: 6.794 MB / 435.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/0.311, allocations: 273.2 kB / 435.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.3114, allocations: 177.6 kB / 435.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.3115, allocations: 81.11 kB / 435.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.3116, allocations: 38.56 kB / 435.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.365e-06/0.3116, allocations: 4 kB / 435.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002479/0.3141, allocations: 1.432 MB / 437.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.3142, allocations: 89.05 kB / 437.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007732/0.3149, allocations: 0.6648 MB / 438 MB, free: 3.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.315, allocations: 29.7 kB / 438 MB, free: 3.508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004722/0.3154, allocations: 0.7016 MB / 438.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.369e-05/0.3155, allocations: 123 kB / 438.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.3157, allocations: 142.6 kB / 439 MB, free: 2.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.3159, allocations: 386.8 kB / 439.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.3162, allocations: 145.9 kB / 439.5 MB, free: 2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005748/0.3168, allocations: 0.5468 MB / 440.1 MB, free: 1.25 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.318, allocations: 0.961 MB / 441 MB, free: 56 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.318, allocations: 4 kB / 441 MB, free: 52 kB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001325/0.3193, allocations: 0.7912 MB / 441.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3194, allocations: 12.78 kB / 441.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.3194, allocations: 16 kB / 441.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002427/0.3196, allocations: 89.62 kB / 441.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.3202, allocations: 183.7 kB / 442.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.3229, allocations: 3.321 MB / 445.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.3233, allocations: 35.98 kB / 445.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.996e-05/0.3233, allocations: 40 kB / 445.5 MB, free: 11.27 MB / 366.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004252/0.3238, allocations: 282.3 kB / 445.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.3239, allocations: 79.48 kB / 445.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.324, allocations: 74.41 kB / 445.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3241, allocations: 4 kB / 445.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3241, allocations: 0 / 445.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3241, allocations: 0 / 445.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.3259, allocations: 1.251 MB / 447.2 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.3259, allocations: 4 kB / 447.2 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003079/0.3262, allocations: 64.02 kB / 447.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001715/0.3264, allocations: 61.72 kB / 447.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.3264, allocations: 12 kB / 447.3 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.3287, allocations: 3.053 MB / 450.4 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3287, allocations: 0 / 450.4 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009393/0.3297, allocations: 0.6356 MB / 451 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.3298, allocations: 144.8 kB / 451.2 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.147e-05/0.3299, allocations: 8.062 kB / 451.2 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.3302, allocations: 15.98 kB / 451.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.102e-05/0.3302, allocations: 39.83 kB / 451.2 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.3303, allocations: 12 kB / 451.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005501/0.3308, allocations: 435 kB / 451.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3308, allocations: 0 / 451.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009137/0.3318, allocations: 160 kB / 451.8 MB, free: 4.547 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001275/0.333, allocations: 1.191 MB / 453 MB, free: 3.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.3342, allocations: 0.6466 MB / 453.7 MB, free: 2.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3342, allocations: 4 kB / 453.7 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004963/0.3347, allocations: 369.4 kB / 454 MB, free: 2.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005377/0.3353, allocations: 87.47 kB / 454.1 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009058/0.3443, allocations: 6.47 MB / 460.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007218/0.3451, allocations: 1.034 MB / 461.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000298/0.3454, allocations: 86.02 kB / 461.7 MB, free: 10 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004867/0.3459, allocations: 423.3 kB / 462.1 MB, free: 9.59 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3459, allocations: 0 / 462.1 MB, free: 9.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04598/0.3919, allocations: 12.76 MB / 474.9 MB, free: 13.03 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.1, allocations: 8.016 kB / 474.9 MB, free: 13.02 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.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_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)