Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.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.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_QuasiStatic_SinglePhase_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.001799/0.001807, 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.002/0.002, allocations: 201.2 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.446/1.446, 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.001993/0.001994, allocations: 63.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3158, allocations: 50.55 MB / 409.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.006238/0.3221, allocations: 3.705 MB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003363/0.3255, allocations: 1.495 MB / 414.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004207/0.326, allocations: 8 kB / 414.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002087/0.3281, allocations: 0.7506 MB / 415 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001284/0.3294, allocations: 393.1 kB / 415.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.3307, allocations: 0.5482 MB / 416 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007669/0.3315, allocations: 462 kB / 416.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007458/0.3322, allocations: 388.8 kB / 416.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004347/0.3327, allocations: 207.2 kB / 417 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004045/0.3331, allocations: 274.9 kB / 417.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.567e-05/0.3332, allocations: 44 kB / 417.3 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005965/0.3338, allocations: 203.9 kB / 417.5 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.3339, allocations: 111.6 kB / 417.6 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002601/0.3342, allocations: 230.8 kB / 417.8 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.3354, allocations: 0.6888 MB / 418.5 MB, free: 7.844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3354, allocations: 7.938 kB / 418.5 MB, free: 7.836 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.246e-05/0.3355, allocations: 0 / 418.5 MB, free: 7.836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.3355, allocations: 0 / 418.5 MB, free: 7.836 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002375/0.3379, allocations: 0.9161 MB / 419.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.3379, allocations: 8.031 kB / 419.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001637/0.3381, allocations: 104 kB / 419.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00346/0.3416, allocations: 468.2 kB / 420 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006338/0.3422, allocations: 303.8 kB / 420.3 MB, free: 5.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.172e-05/0.3423, allocations: 37.69 kB / 420.3 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.193e-05/0.3424, allocations: 60.33 kB / 420.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.3434, allocations: 0.5257 MB / 420.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.3435, allocations: 0 / 420.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.781e-05/0.3435, allocations: 24 kB / 421 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.3435, allocations: 15.94 kB / 421 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.3446, allocations: 0.5712 MB / 421.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003998/0.3486, allocations: 1.957 MB / 423.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003135/0.3518, allocations: 2.192 MB / 425.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/0.3523, allocations: 214.1 kB / 425.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003041/0.3526, allocations: 178.5 kB / 426.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.3527, allocations: 35 kB / 426.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.915e-06/0.3527, allocations: 4 kB / 426.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002313/0.355, allocations: 0.7934 MB / 426.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.3551, allocations: 63.83 kB / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.3554, allocations: 190.2 kB / 427.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/0.3555, allocations: 33.7 kB / 427.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.3558, allocations: 225 kB / 427.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002704/0.356, allocations: 174.5 kB / 427.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.3562, allocations: 78.25 kB / 427.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.3564, allocations: 334.8 kB / 428 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/0.3568, allocations: 157 kB / 428.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.3572, allocations: 224.8 kB / 428.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007118/0.3579, allocations: 399.4 kB / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3579, allocations: 4 kB / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001238/0.3592, allocations: 0.5355 MB / 429.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.3592, allocations: 8 kB / 429.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.3592, allocations: 0 / 429.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003998/0.3596, allocations: 93.02 kB / 429.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003684/0.36, allocations: 91.83 kB / 429.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/0.3625, allocations: 2.045 MB / 431.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.3628, allocations: 43.66 kB / 431.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/0.3629, allocations: 19.94 kB / 431.6 MB, free: 9.836 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002777/0.3632, allocations: 173.6 kB / 431.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.816e-05/0.3633, allocations: 27.81 kB / 431.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.3645, allocations: 0.5552 MB / 432.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.3645, allocations: 4 kB / 432.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.3645, allocations: 0 / 432.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3645, allocations: 3.938 kB / 432.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.3665, allocations: 1.131 MB / 433.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3665, allocations: 0 / 433.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003409/0.3668, allocations: 83.89 kB / 433.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003023/0.3672, allocations: 88.73 kB / 433.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.3672, allocations: 12 kB / 433.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/0.3695, allocations: 2.041 MB / 435.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.3695, allocations: 0 / 435.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.371, allocations: 0.801 MB / 436.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.3711, allocations: 104.9 kB / 436.6 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.3712, allocations: 12 kB / 436.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.3714, allocations: 19.98 kB / 436.6 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.3715, allocations: 32.58 kB / 436.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.3715, allocations: 20.05 kB / 436.7 MB, free: 4.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001362/0.3717, allocations: 136.2 kB / 436.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3717, allocations: 0 / 436.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006491/0.3724, allocations: 151.7 kB / 437 MB, free: 4.199 MB / 350.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 (42): * Single equations (assignments): 41 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001979/0.3743, allocations: 1.384 MB / 438.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.3756, allocations: 0.5663 MB / 438.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3756, allocations: 0 / 438.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006384/0.3762, allocations: 381 kB / 439.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.3766, allocations: 38.44 kB / 439.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005472/0.3821, allocations: 3.425 MB / 442.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.3827, allocations: 0.8006 MB / 443.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.3829, allocations: 50.95 kB / 443.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.3831, allocations: 135.4 kB / 443.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3831, allocations: 0 / 443.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04221/0.4254, allocations: 7.586 MB / 451.3 MB, free: 5.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.67, allocations: 3.938 kB / 451.3 MB, free: 5.812 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1)