Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001381/0.001381, allocations: 122.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.00134/0.00134, allocations: 202 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.492/1.492, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001859/0.001859, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3043, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005118/0.3095, allocations: 2.916 MB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.311, allocations: 0.7049 MB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.3112, allocations: 4 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.3114, allocations: 67.38 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.3116, allocations: 83.2 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.3119, allocations: 91.81 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004241/0.3124, allocations: 374.5 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002882/0.3127, allocations: 157.3 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003046/0.313, allocations: 147.5 kB / 413.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.3132, allocations: 155.3 kB / 413.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.9e-05/0.3133, allocations: 32 kB / 413.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.496e-05/0.3133, allocations: 36 kB / 413.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.022e-05/0.3134, allocations: 75.7 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.3136, allocations: 171.1 kB / 414 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004647/0.3141, allocations: 377.4 kB / 414.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3141, allocations: 3.984 kB / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3141, allocations: 0 / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3141, allocations: 0 / 414.4 MB, free: 11.98 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009851/0.3151, allocations: 0.6118 MB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.3151, allocations: 12.03 kB / 415 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.724e-05/0.3152, allocations: 66.72 kB / 415.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.593e-05/0.3153, allocations: 40.7 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.3157, allocations: 263.8 kB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.3157, allocations: 25.03 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/0.3158, allocations: 28.38 kB / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005396/0.3163, allocations: 282.2 kB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.3163, allocations: 3.938 kB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.3164, allocations: 16 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3164, allocations: 11.94 kB / 415.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/0.3168, allocations: 198.5 kB / 416 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.3184, allocations: 0.9716 MB / 416.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003596/0.3187, allocations: 166.6 kB / 417.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.3189, allocations: 84.75 kB / 417.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.319, allocations: 0 / 417.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.319, allocations: 34.56 kB / 417.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.653e-06/0.319, allocations: 0 / 417.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006251/0.3197, allocations: 217.1 kB / 417.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.3197, allocations: 59.39 kB / 417.5 MB, free: 8.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.32, allocations: 214.7 kB / 417.7 MB, free: 8.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.3201, allocations: 29.7 kB / 417.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.3202, allocations: 188.4 kB / 417.9 MB, free: 8.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.029e-05/0.3203, allocations: 75.38 kB / 418 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.3204, allocations: 49.7 kB / 418 MB, free: 8.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3206, allocations: 330.8 kB / 418.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.3208, allocations: 63.95 kB / 418.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.321, allocations: 114 kB / 418.5 MB, free: 7.609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.3214, allocations: 193.8 kB / 418.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.3214, allocations: 3.938 kB / 418.7 MB, free: 7.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004882/0.3219, allocations: 249.3 kB / 419 MB, free: 7.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3219, allocations: 4 kB / 419 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3219, allocations: 0 / 419 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3219, allocations: 4 kB / 419 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002803/0.3222, allocations: 59.91 kB / 419 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.3223, allocations: 7.984 kB / 419 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.3224, allocations: 23.83 kB / 419 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.3224, allocations: 12.12 kB / 419.1 MB, free: 7.035 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001435/0.3226, allocations: 145.7 kB / 419.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.085e-05/0.3226, allocations: 23.84 kB / 419.2 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004392/0.3231, allocations: 191.3 kB / 419.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.3231, allocations: 4 kB / 419.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3231, allocations: 0 / 419.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3231, allocations: 3.984 kB / 419.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.3235, allocations: 321.4 kB / 419.7 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3236, allocations: 7.938 kB / 419.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.3238, allocations: 47.97 kB / 419.8 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3238, allocations: 3.984 kB / 419.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.3239, allocations: 4 kB / 419.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3239, allocations: 4 kB / 419.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3239, allocations: 0 / 419.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006031/0.3245, allocations: 357.7 kB / 420.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.032e-05/0.3246, allocations: 96.91 kB / 420.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.3246, allocations: 4.062 kB / 420.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.3248, allocations: 15.98 kB / 420.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.3248, allocations: 15.97 kB / 420.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.3249, allocations: 4 kB / 420.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.325, allocations: 152.6 kB / 420.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.325, allocations: 4 kB / 420.4 MB, free: 5.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.3253, allocations: 71.78 kB / 420.5 MB, free: 5.492 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0008986/0.3262, allocations: 0.884 MB / 421.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004172/0.3267, allocations: 163.8 kB / 421.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3267, allocations: 0 / 421.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.3268, allocations: 71.91 kB / 421.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/0.3272, allocations: 39.7 kB / 421.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003729/0.3309, allocations: 2.704 MB / 424.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.3314, allocations: 0.7671 MB / 425.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.889e-05/0.3315, allocations: 21.89 kB / 425.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.3316, allocations: 96.06 kB / 425.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3316, allocations: 4 kB / 425.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.3589, allocations: 4.524 MB / 429.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.492, allocations: 3.625 kB / 429.8 MB, free: 12.18 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1)