Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001698/0.001698, allocations: 114.9 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001963/0.001963, allocations: 205.2 kB / 18.79 MB, free: 4.141 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.468/1.468, allocations: 230.4 MB / 250 MB, free: 9.133 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.001821/0.001821, allocations: 71.83 kB / 366.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2592, allocations: 53.3 MB / 420.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004503/0.2637, allocations: 2.927 MB / 423.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.265, allocations: 0.7166 MB / 423.8 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.2652, allocations: 4 kB / 423.8 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.2654, allocations: 67.38 kB / 423.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001807/0.2656, allocations: 83.19 kB / 424 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.2658, allocations: 95.81 kB / 424.1 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004317/0.2663, allocations: 382.9 kB / 424.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.2665, allocations: 120.5 kB / 424.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.2668, allocations: 151.5 kB / 424.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.267, allocations: 167.2 kB / 424.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.2671, allocations: 36 kB / 424.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.697e-05/0.2671, allocations: 32 kB / 424.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.777e-05/0.2672, allocations: 67.77 kB / 425 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.2674, allocations: 175.1 kB / 425.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00046/0.2678, allocations: 385.4 kB / 425.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2678, allocations: 0 / 425.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2678, allocations: 0 / 425.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.2678, allocations: 0 / 425.5 MB, free: 2.891 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.001071/0.2689, allocations: 0.6274 MB / 426.2 MB, free: 2.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.269, allocations: 12.03 kB / 426.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.032e-05/0.269, allocations: 66.72 kB / 426.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.48e-05/0.2691, allocations: 44.7 kB / 426.3 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.2696, allocations: 267.8 kB / 426.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.2696, allocations: 25.03 kB / 426.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-05/0.2697, allocations: 32.38 kB / 426.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005759/0.2702, allocations: 282.2 kB / 426.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2703, allocations: 3.938 kB / 426.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.2703, allocations: 12 kB / 426.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.2703, allocations: 8 kB / 426.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004845/0.2708, allocations: 218.4 kB / 427.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.2725, allocations: 1.022 MB / 428.1 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.2728, allocations: 157.4 kB / 428.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.2731, allocations: 124.7 kB / 428.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.2731, allocations: 4 kB / 428.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.2732, allocations: 34.55 kB / 428.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.272e-06/0.2732, allocations: 0 / 428.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.000581/0.2738, allocations: 217.8 kB / 428.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.2738, allocations: 55.41 kB / 428.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.274, allocations: 231 kB / 429 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.2741, allocations: 25.7 kB / 429 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.2742, allocations: 200.3 kB / 429.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.129e-05/0.2743, allocations: 75.38 kB / 429.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.01e-05/0.2744, allocations: 49.98 kB / 429.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.2745, allocations: 334.8 kB / 429.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.2747, allocations: 60.53 kB / 429.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.275, allocations: 151.3 kB / 429.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004001/0.2754, allocations: 225.2 kB / 430 MB, free: 14.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2754, allocations: 4 kB / 430.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005198/0.2759, allocations: 277 kB / 430.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.2759, allocations: 8 kB / 430.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2759, allocations: 0 / 430.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.2759, allocations: 4.25 kB / 430.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.2762, allocations: 75.91 kB / 430.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.2762, allocations: 4 kB / 430.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.2764, allocations: 35.77 kB / 430.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.2764, allocations: 8 kB / 430.5 MB, free: 13.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001541/0.2766, allocations: 141.8 kB / 430.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.064e-05/0.2766, allocations: 27.8 kB / 430.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004544/0.2771, allocations: 205 kB / 430.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.2771, allocations: 4 kB / 430.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.2771, allocations: 4 kB / 430.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2771, allocations: 0 / 430.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008907/0.278, allocations: 0.5975 MB / 431.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.278, allocations: 8.062 kB / 431.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.2783, allocations: 55.89 kB / 431.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.2783, allocations: 4 kB / 431.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.2783, allocations: 4 kB / 431.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.2783, allocations: 4 kB / 431.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2783, allocations: 0 / 431.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/0.2789, allocations: 375.9 kB / 431.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.423e-05/0.279, allocations: 105 kB / 432 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.279, allocations: 8 kB / 432 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.2792, allocations: 15.92 kB / 432 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.97e-05/0.2792, allocations: 15.98 kB / 432 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.2793, allocations: 8 kB / 432 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.2794, allocations: 160.6 kB / 432.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2794, allocations: 0 / 432.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003442/0.2797, allocations: 79.78 kB / 432.3 MB, free: 11.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0009467/0.2807, allocations: 0.9073 MB / 433.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004075/0.2811, allocations: 172.3 kB / 433.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2811, allocations: 4 kB / 433.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.2813, allocations: 83.83 kB / 433.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.2816, allocations: 32.55 kB / 433.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.2853, allocations: 2.822 MB / 436.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.2857, allocations: 0.7713 MB / 437 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.069e-05/0.2858, allocations: 21.94 kB / 437.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.286, allocations: 91.41 kB / 437.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.286, allocations: 4 kB / 437.2 MB, free: 6.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02933/0.3153, allocations: 4.692 MB / 441.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.057/8.373, allocations: 11.62 kB / 441.9 MB, free: 2.074 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance_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_ParallelResonance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1)