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.001853/0.001853, allocations: 122.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00209/0.00209, allocations: 198 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.47/1.47, 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.001913/0.001913, allocations: 59.91 kB / 358.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2599, allocations: 50.55 MB / 409.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004628/0.2646, allocations: 2.923 MB / 412 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.266, allocations: 0.6972 MB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2661, allocations: 11.94 kB / 412.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.2664, allocations: 55.44 kB / 412.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.2665, allocations: 95.12 kB / 412.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.2668, allocations: 87.83 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.2673, allocations: 378.5 kB / 413.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.2676, allocations: 153.3 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002873/0.2679, allocations: 151.5 kB / 413.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002825/0.2682, allocations: 155.3 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.2683, allocations: 32 kB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.603e-05/0.2683, allocations: 32 kB / 413.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.417e-05/0.2684, allocations: 71.77 kB / 413.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.2686, allocations: 179.1 kB / 414.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00061/0.2692, allocations: 377.4 kB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2693, allocations: 0 / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2693, allocations: 0 / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.2693, allocations: 0 / 414.4 MB, free: 11.95 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.001383/0.2707, allocations: 0.6118 MB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.2707, allocations: 8.031 kB / 415.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.2709, allocations: 70.72 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.271, allocations: 36.7 kB / 415.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005348/0.2715, allocations: 271.8 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.2716, allocations: 21.03 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.66e-05/0.2717, allocations: 32.38 kB / 415.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007766/0.2725, allocations: 278.1 kB / 415.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.2725, allocations: 4 kB / 415.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.2725, allocations: 12 kB / 415.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.2726, allocations: 8 kB / 415.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006951/0.2733, allocations: 202.5 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.2755, allocations: 0.9716 MB / 416.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004822/0.276, allocations: 166.6 kB / 417.1 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.2763, allocations: 80.81 kB / 417.2 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.2763, allocations: 7.922 kB / 417.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.777e-05/0.2764, allocations: 34.56 kB / 417.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.685e-06/0.2764, allocations: 0 / 417.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007734/0.2772, allocations: 225.6 kB / 417.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.2773, allocations: 51.41 kB / 417.5 MB, free: 8.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.2776, allocations: 214.7 kB / 417.7 MB, free: 8.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.2776, allocations: 29.64 kB / 417.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.2778, allocations: 188.4 kB / 417.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.368e-05/0.2779, allocations: 75.38 kB / 418 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.949e-05/0.278, allocations: 45.7 kB / 418 MB, free: 8.102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.2782, allocations: 338.8 kB / 418.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.2784, allocations: 59.97 kB / 418.4 MB, free: 7.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.2786, allocations: 114 kB / 418.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.279, allocations: 189.8 kB / 418.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.279, allocations: 3.938 kB / 418.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004939/0.2795, allocations: 245.3 kB / 419 MB, free: 7.113 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.2795, allocations: 7.125 kB / 419 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.2795, allocations: 4 kB / 419 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.2796, allocations: 0 / 419 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.2799, allocations: 63.89 kB / 419 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.2799, allocations: 4 kB / 419 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.2801, allocations: 19.89 kB / 419.1 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.2801, allocations: 15.92 kB / 419.1 MB, free: 7.004 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.0001697/0.2803, allocations: 149.8 kB / 419.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.625e-05/0.2803, allocations: 19.86 kB / 419.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004416/0.2808, allocations: 195.3 kB / 419.4 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.2808, allocations: 0 / 419.4 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.2808, allocations: 0 / 419.4 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2808, allocations: 0 / 419.4 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.2812, allocations: 329.4 kB / 419.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2812, allocations: 0 / 419.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/0.2815, allocations: 51.97 kB / 419.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.2815, allocations: 0 / 419.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.2815, allocations: 8 kB / 419.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2815, allocations: 0 / 419.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2816, allocations: 0 / 419.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006388/0.2822, allocations: 353.7 kB / 420.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.339e-05/0.2823, allocations: 105 kB / 420.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.2823, allocations: 4 kB / 420.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.2825, allocations: 15.98 kB / 420.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.2826, allocations: 11.98 kB / 420.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.2826, allocations: 4 kB / 420.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001479/0.2827, allocations: 148.6 kB / 420.4 MB, free: 5.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2827, allocations: 0 / 420.4 MB, free: 5.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.2831, allocations: 83.78 kB / 420.5 MB, free: 5.461 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.001029/0.2841, allocations: 0.8762 MB / 421.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004319/0.2846, allocations: 171.8 kB / 421.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2846, allocations: 0 / 421.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.2848, allocations: 71.91 kB / 421.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.2851, allocations: 31.86 kB / 421.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.289, allocations: 2.72 MB / 424.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.2895, allocations: 0.7671 MB / 425.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.404e-05/0.2896, allocations: 25.92 kB / 425.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.2898, allocations: 91.41 kB / 425.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of SimCode: time 1.363e-06/0.2898, allocations: 0 / 425.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.3179, allocations: 4.527 MB / 429.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.905/8.223, allocations: 2.062 kB / 429.8 MB, free: 12.15 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance_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_SeriesResonance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1)