Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.QuasiStatic.SinglePhase.Examples.MultipleResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_MultipleResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_MultipleResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001819/0.001819, allocations: 118.5 kB / 17.79 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.002131/0.002131, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001939, allocations: 59.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2766, allocations: 50.54 MB / 408.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance): time 0.006471/0.2832, allocations: 5.089 MB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.2865, allocations: 1.846 MB / 415.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002856/0.2868, allocations: 12 kB / 415.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002647/0.2895, allocations: 1.178 MB / 416.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001526/0.291, allocations: 0.6214 MB / 417.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.2923, allocations: 0.6137 MB / 418.1 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009213/0.2932, allocations: 0.7544 MB / 418.9 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008543/0.2941, allocations: 0.5627 MB / 419.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004248/0.2945, allocations: 330.7 kB / 419.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004535/0.295, allocations: 430.2 kB / 420.2 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.951e-05/0.2951, allocations: 68 kB / 420.2 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005048/0.2956, allocations: 255.8 kB / 420.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.2957, allocations: 167.3 kB / 420.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003306/0.2961, allocations: 374.1 kB / 421 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.2973, allocations: 1.023 MB / 422 MB, free: 4.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2973, allocations: 0 / 422 MB, free: 4.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2973, allocations: 3.938 kB / 422.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.2973, allocations: 0 / 422.1 MB, free: 4.348 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.003758/0.3011, allocations: 1.403 MB / 423.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3011, allocations: 8.031 kB / 423.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.3013, allocations: 127.1 kB / 423.6 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006024/0.3073, allocations: 0.8355 MB / 424.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006332/0.308, allocations: 415.2 kB / 424.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.733e-05/0.308, allocations: 62.38 kB / 424.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.3082, allocations: 79.92 kB / 425 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3096, allocations: 0.761 MB / 425.7 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.3096, allocations: 7.938 kB / 425.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.121e-05/0.3097, allocations: 36 kB / 425.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.3097, allocations: 20 kB / 425.8 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.3114, allocations: 0.8981 MB / 426.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00424/0.3156, allocations: 2.756 MB / 429.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/0.3181, allocations: 2.189 MB / 431.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005577/0.3187, allocations: 343.2 kB / 432 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001827/0.3189, allocations: 178.8 kB / 432.1 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.3189, allocations: 47.22 kB / 432.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=75): time 2.424e-06/0.3189, allocations: 0 / 432.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003522/0.3224, allocations: 1.335 MB / 433.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.3225, allocations: 60.06 kB / 433.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.3229, allocations: 294.9 kB / 433.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.359e-05/0.3229, allocations: 41.7 kB / 433.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.3231, allocations: 292.7 kB / 434.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002163/0.3234, allocations: 269.7 kB / 434.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/0.3236, allocations: 122.6 kB / 434.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3237, allocations: 354.7 kB / 434.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.3242, allocations: 233.9 kB / 435.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005668/0.3248, allocations: 362.5 kB / 435.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.3259, allocations: 0.6336 MB / 436.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.3259, allocations: 0 / 436.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001835/0.3277, allocations: 0.8647 MB / 437 MB, free: 4.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3278, allocations: 4 kB / 437 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3278, allocations: 4 kB / 437 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007897/0.3286, allocations: 208.7 kB / 437.2 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.3291, allocations: 131.8 kB / 437.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003477/0.3326, allocations: 2.709 MB / 440.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004105/0.333, allocations: 79.44 kB / 440.1 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.3331, allocations: 31.94 kB / 440.2 MB, free: 1.289 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003597/0.3335, allocations: 201.7 kB / 440.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.637e-05/0.3336, allocations: 47.7 kB / 440.4 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/0.3355, allocations: 0.8898 MB / 441.3 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3355, allocations: 15.94 kB / 441.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3355, allocations: 4 kB / 441.3 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3355, allocations: 7.922 kB / 441.3 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.3384, allocations: 1.688 MB / 443 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3384, allocations: 0 / 443 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004685/0.3389, allocations: 111.8 kB / 443.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00068/0.3396, allocations: 199.4 kB / 443.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.3396, allocations: 19.98 kB / 443.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003323/0.343, allocations: 2.705 MB / 446 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.343, allocations: 0 / 446 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.3453, allocations: 1.257 MB / 447.3 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.3454, allocations: 132.8 kB / 447.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.2e-05/0.3455, allocations: 16 kB / 447.4 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.3458, allocations: 27.92 kB / 447.5 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.346, allocations: 52.58 kB / 447.5 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.452e-05/0.346, allocations: 23.98 kB / 447.5 MB, free: 9.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.3462, allocations: 206 kB / 447.7 MB, free: 9.449 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3462, allocations: 0 / 447.7 MB, free: 9.449 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000755/0.347, allocations: 239.5 kB / 448 MB, free: 9.215 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002762/0.3498, allocations: 1.856 MB / 449.8 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.3514, allocations: 0.8515 MB / 450.7 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3514, allocations: 0 / 450.7 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008785/0.3523, allocations: 0.5457 MB / 451.2 MB, free: 5.902 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004728/0.3528, allocations: 64.8 kB / 451.3 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007794/0.3606, allocations: 5.093 MB / 456.4 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005685/0.3612, allocations: 0.8852 MB / 457.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003233/0.3615, allocations: 80.52 kB / 457.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.3618, allocations: 219.3 kB / 457.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3618, allocations: 4 kB / 457.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04254/0.4044, allocations: 12.35 MB / 469.9 MB, free: 3.195 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.31, allocations: 7.922 kB / 469.9 MB, free: 3.188 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_MultipleResonance.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance.pipe 2>&1)