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.001741/0.001741, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002064/0.002064, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.487/1.487, allocations: 227.7 MB / 247 MB, free: 10.3 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.001917/0.001918, allocations: 68.11 kB / 307.3 MB, free: 420 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.111, allocations: 50.54 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.00801/0.1191, allocations: 6.017 MB / 363.9 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003254/0.1224, allocations: 1.726 MB / 365.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004813/0.1229, allocations: 27.88 kB / 365.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005269/0.1234, allocations: 253.5 kB / 365.9 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004869/0.1239, allocations: 217.7 kB / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.1249, allocations: 0.5188 MB / 366.6 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001466/0.1264, allocations: 1.383 MB / 368 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008903/0.1273, allocations: 0.6286 MB / 368.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006107/0.1279, allocations: 478.1 kB / 369.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005066/0.1284, allocations: 0.4973 MB / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.1286, allocations: 124 kB / 369.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.1289, allocations: 144 kB / 369.9 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.1291, allocations: 263 kB / 370.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005386/0.1296, allocations: 0.61 MB / 370.7 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1829/0.3125, allocations: 1.565 MB / 372.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.285e-05/0.3126, allocations: 0 / 372.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.3126, allocations: 3.219 kB / 372.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.409e-05/0.3126, allocations: 1.125 kB / 372.3 MB, free: 12.89 MB / 302.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.002342/0.315, allocations: 1.464 MB / 373.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.315, allocations: 9 kB / 373.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002065/0.3153, allocations: 183.9 kB / 374 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004174/0.3157, allocations: 164.2 kB / 374.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.3167, allocations: 0.7166 MB / 374.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.508e-05/0.3168, allocations: 88.44 kB / 374.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.317, allocations: 125.1 kB / 375 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.3188, allocations: 1.268 MB / 376.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.3189, allocations: 9.438 kB / 376.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.611e-05/0.319, allocations: 52.22 kB / 376.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.319, allocations: 32.05 kB / 376.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.3202, allocations: 0.692 MB / 377.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004649/0.3248, allocations: 6.818 MB / 383.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006304/0.3255, allocations: 273.3 kB / 384.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.3259, allocations: 187 kB / 384.4 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001644/0.326, allocations: 87.83 kB / 384.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.3261, allocations: 38.42 kB / 384.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.835e-06/0.3261, allocations: 0 / 384.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002121/0.3282, allocations: 1.398 MB / 385.9 MB, free: 4.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.3282, allocations: 83.73 kB / 386 MB, free: 4.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000667/0.3289, allocations: 0.6554 MB / 386.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.3289, allocations: 31.86 kB / 386.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.3293, allocations: 0.6827 MB / 387.3 MB, free: 3.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.301e-05/0.3293, allocations: 122.7 kB / 387.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.3295, allocations: 143.9 kB / 387.6 MB, free: 3.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.3296, allocations: 388.6 kB / 388 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002577/0.3298, allocations: 147.9 kB / 388.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003831/0.3302, allocations: 0.5495 MB / 388.7 MB, free: 2.648 MB / 302.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.0008144/0.3311, allocations: 0.9511 MB / 389.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.3311, allocations: 2.938 kB / 389.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001157/0.3322, allocations: 0.7995 MB / 390.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.3323, allocations: 12.09 kB / 390.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.3323, allocations: 14.97 kB / 390.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.3325, allocations: 78.27 kB / 390.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.333, allocations: 184.1 kB / 390.7 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.3355, allocations: 3.333 MB / 394 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004434/0.3359, allocations: 31.25 kB / 394.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/0.336, allocations: 40.59 kB / 394.1 MB, free: 14.21 MB / 318.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.000422/0.3364, allocations: 276 kB / 394.4 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.3366, allocations: 75.27 kB / 394.4 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.3367, allocations: 75.03 kB / 394.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3367, allocations: 3.484 kB / 394.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.3367, allocations: 6.469 kB / 394.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3367, allocations: 1.359 kB / 394.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.3387, allocations: 1.251 MB / 395.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.3387, allocations: 1.469 kB / 395.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002975/0.339, allocations: 63.67 kB / 395.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001623/0.3392, allocations: 60.56 kB / 395.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.3392, allocations: 15.72 kB / 395.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002687/0.3419, allocations: 3.05 MB / 399 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3419, allocations: 1.188 kB / 399 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009205/0.3428, allocations: 0.6357 MB / 399.6 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.343, allocations: 136.3 kB / 399.7 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.259e-05/0.3431, allocations: 15.44 kB / 399.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/0.3434, allocations: 15.48 kB / 399.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.532e-05/0.3434, allocations: 22.77 kB / 399.8 MB, free: 9.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.3435, allocations: 13.11 kB / 399.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005272/0.344, allocations: 434.8 kB / 400.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.344, allocations: 0 / 400.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009388/0.345, allocations: 158.6 kB / 400.4 MB, free: 9.352 MB / 318.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.001247/0.3462, allocations: 1.196 MB / 401.6 MB, free: 8.402 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.3474, allocations: 0.6559 MB / 402.2 MB, free: 8.062 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3474, allocations: 0.9375 kB / 402.2 MB, free: 8.062 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.348, allocations: 361.8 kB / 402.6 MB, free: 7.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/0.3485, allocations: 87.09 kB / 402.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009446/0.358, allocations: 6.677 MB / 409.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006751/0.3587, allocations: 1.038 MB / 410.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003948/0.3591, allocations: 82.48 kB / 410.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005184/0.3596, allocations: 430.9 kB / 410.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3597, allocations: 0 / 410.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06154/0.4212, allocations: 12.4 MB / 423.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.7, allocations: 3.875 kB / 423.3 MB, free: 6.352 MB / 334.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)