Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001763/0.001762, allocations: 118.2 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.001303/0.001303, allocations: 198 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.392/1.392, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002986/0.002987, allocations: 59.91 kB / 358.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3154, allocations: 50.54 MB / 409.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006755/0.3222, allocations: 5.408 MB / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.3252, allocations: 1.508 MB / 416 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005085/0.3257, allocations: 23.88 kB / 416 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004877/0.3262, allocations: 221.8 kB / 416.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005581/0.3268, allocations: 198 kB / 416.4 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008115/0.3276, allocations: 415.3 kB / 416.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.3289, allocations: 1.126 MB / 418 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006939/0.3296, allocations: 480.2 kB / 418.4 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005934/0.3302, allocations: 402.3 kB / 418.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004848/0.3307, allocations: 437.5 kB / 419.3 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.3308, allocations: 84 kB / 419.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.3311, allocations: 108 kB / 419.5 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.3313, allocations: 211.1 kB / 419.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004614/0.3317, allocations: 0.4971 MB / 420.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001288/0.333, allocations: 1.181 MB / 421.3 MB, free: 5.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.333, allocations: 0 / 421.3 MB, free: 5.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.333, allocations: 0 / 421.3 MB, free: 5.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.3331, allocations: 4 kB / 421.3 MB, free: 5.008 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.00194/0.335, allocations: 1.35 MB / 422.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3351, allocations: 8.031 kB / 422.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.3352, allocations: 152.2 kB / 422.8 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003373/0.3356, allocations: 155.1 kB / 423 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.3366, allocations: 0.6659 MB / 423.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.177e-05/0.3367, allocations: 73.94 kB / 423.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.3369, allocations: 100 kB / 423.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.3385, allocations: 1.027 MB / 424.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.3386, allocations: 7.891 kB / 424.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.485e-05/0.3387, allocations: 48 kB / 424.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/0.3387, allocations: 31.94 kB / 424.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.3399, allocations: 0.5578 MB / 425.5 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005415/0.3453, allocations: 5.498 MB / 431 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006228/0.3459, allocations: 230.9 kB / 431.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003168/0.3463, allocations: 161.6 kB / 431.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.3464, allocations: 89.05 kB / 431.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.3465, allocations: 38.56 kB / 431.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.813e-06/0.3465, allocations: 0 / 431.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004025/0.3505, allocations: 1.742 MB / 433.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.3506, allocations: 85.05 kB / 433.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007485/0.3514, allocations: 0.6412 MB / 434 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.3514, allocations: 33.7 kB / 434 MB, free: 7.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004478/0.3519, allocations: 0.6122 MB / 434.6 MB, free: 7.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.352, allocations: 158.7 kB / 434.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.3522, allocations: 138.5 kB / 434.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3524, allocations: 386.8 kB / 435.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.3527, allocations: 153.9 kB / 435.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005739/0.3533, allocations: 0.4894 MB / 435.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009616/0.3543, allocations: 0.6929 MB / 436.6 MB, free: 4.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3543, allocations: 4 kB / 436.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001167/0.3555, allocations: 0.7235 MB / 437.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3555, allocations: 8 kB / 437.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.3555, allocations: 12 kB / 437.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.476e-05/0.3556, allocations: 19.98 kB / 437.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006206/0.3562, allocations: 199.6 kB / 437.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.523e-05/0.3562, allocations: 24.3 kB / 437.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.3566, allocations: 35.98 kB / 437.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.3566, allocations: 40 kB / 437.7 MB, free: 3.609 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * Array equations: 0 * 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.0002995/0.3569, allocations: 229.5 kB / 437.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.3571, allocations: 79.48 kB / 438 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.3572, allocations: 78.52 kB / 438.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.3572, allocations: 7.938 kB / 438.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3572, allocations: 4 kB / 438.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3572, allocations: 4 kB / 438.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.3593, allocations: 1.312 MB / 439.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3593, allocations: 7.938 kB / 439.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.3598, allocations: 103.9 kB / 439.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.3598, allocations: 7.938 kB / 439.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.3599, allocations: 11.98 kB / 439.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.3599, allocations: 7.938 kB / 439.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3599, allocations: 0 / 439.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.3609, allocations: 0.7093 MB / 440.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.361, allocations: 144.6 kB / 440.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.628e-05/0.3611, allocations: 8 kB / 440.4 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.3614, allocations: 23.98 kB / 440.4 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.713e-05/0.3615, allocations: 28.05 kB / 440.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.3615, allocations: 19.98 kB / 440.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004907/0.362, allocations: 423 kB / 440.9 MB, free: 300 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.362, allocations: 0 / 440.9 MB, free: 300 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006225/0.3627, allocations: 140 kB / 441 MB, free: 160 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * Array equations: 0 * 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.001394/0.3641, allocations: 1.266 MB / 442.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008388/0.3649, allocations: 432.8 kB / 442.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3649, allocations: 4 kB / 442.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.3652, allocations: 154.3 kB / 442.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.3658, allocations: 72.44 kB / 442.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008583/0.3744, allocations: 6.144 MB / 449.1 MB, free: 7.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006932/0.3751, allocations: 0.9962 MB / 450.1 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002777/0.3754, allocations: 94.06 kB / 450.2 MB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004889/0.3759, allocations: 395.3 kB / 450.5 MB, free: 6.066 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3759, allocations: 3.938 kB / 450.5 MB, free: 6.062 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03815/0.414, allocations: 11.73 MB / 462.3 MB, free: 10.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.735/9.149, allocations: 8.016 kB / 462.3 MB, free: 10.48 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)