Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 108.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.261/0.261, allocations: 48.84 MB / 319.9 MB, free: 11.08 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 68.91 kB / 390.2 MB, free: 48.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08308, allocations: 59.16 MB / 449.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003389/0.0865, allocations: 2.178 MB / 451.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.08762, allocations: 0.6319 MB / 452.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.08782, allocations: 0 / 452.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.08797, allocations: 35.66 kB / 452.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002434/0.08822, allocations: 67.41 kB / 452.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001707/0.0884, allocations: 55.88 kB / 452.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000277/0.08868, allocations: 243 kB / 452.5 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.08885, allocations: 56.66 kB / 452.6 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.08901, allocations: 103.5 kB / 452.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001593/0.08918, allocations: 99.48 kB / 452.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.08922, allocations: 12 kB / 452.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.313e-05/0.0893, allocations: 20 kB / 452.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.079e-05/0.08935, allocations: 39.84 kB / 452.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.08945, allocations: 115.3 kB / 453 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.08969, allocations: 187.3 kB / 453.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.0897, allocations: 0 / 453.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.0897, allocations: 0 / 453.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.08972, allocations: 0 / 453.2 MB, free: 5.809 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008686/0.09059, allocations: 0.5372 MB / 453.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.09064, allocations: 15.83 kB / 453.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.874e-05/0.09069, allocations: 46.73 kB / 453.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.09081, allocations: 28.66 kB / 453.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/0.09112, allocations: 250.8 kB / 454 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.09114, allocations: 8.375 kB / 454 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.09119, allocations: 20.38 kB / 454.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/0.09148, allocations: 159.4 kB / 454.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.09151, allocations: 0 / 454.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.09153, allocations: 8 kB / 454.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.09154, allocations: 0 / 454.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.09178, allocations: 103.9 kB / 454.3 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008942/0.09269, allocations: 0.6113 MB / 454.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.09295, allocations: 126.6 kB / 455.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/0.09311, allocations: 68.83 kB / 455.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.09314, allocations: 8.281 kB / 455.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.09317, allocations: 38.44 kB / 455.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.09317, allocations: 0 / 455.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001044/0.09422, allocations: 0.5415 MB / 455.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.09427, allocations: 59.41 kB / 455.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.09449, allocations: 225 kB / 456 MB, free: 2.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.09452, allocations: 29.7 kB / 456 MB, free: 2.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.84e-05/0.09461, allocations: 144.3 kB / 456.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.492e-05/0.09466, allocations: 63.09 kB / 456.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.709e-05/0.09473, allocations: 41.7 kB / 456.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.09485, allocations: 330.8 kB / 456.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.09498, allocations: 55.91 kB / 456.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.09511, allocations: 74.55 kB / 456.7 MB, free: 1.961 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.1591549430918953 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.09627, allocations: 434.3 kB / 457.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.09628, allocations: 0 / 457.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003362/0.09662, allocations: 193.2 kB / 457.3 MB, free: 1.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.09664, allocations: 4 kB / 457.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.09665, allocations: 0 / 457.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.09667, allocations: 4 kB / 457.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.09693, allocations: 63.88 kB / 457.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.09694, allocations: 4 kB / 457.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.09708, allocations: 11.98 kB / 457.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.0971, allocations: 8 kB / 457.4 MB, free: 1.223 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.0001119/0.09721, allocations: 129.8 kB / 457.6 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.09727, allocations: 27.66 kB / 457.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.007e-05/0.09733, allocations: 30.17 kB / 457.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.09734, allocations: 0 / 457.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.09735, allocations: 4 kB / 457.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.09736, allocations: 4 kB / 457.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000665/0.09803, allocations: 0.5139 MB / 458.1 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.09804, allocations: 0 / 458.1 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.0983, allocations: 47.97 kB / 458.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.09831, allocations: 0 / 458.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.09833, allocations: 12 kB / 458.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.09834, allocations: 0 / 458.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.09834, allocations: 0 / 458.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.09881, allocations: 338.1 kB / 458.5 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.604e-05/0.09892, allocations: 104.9 kB / 458.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.378e-05/0.09896, allocations: 8 kB / 458.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.09911, allocations: 15.98 kB / 458.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.09916, allocations: 7.984 kB / 458.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.09917, allocations: 7.938 kB / 458.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001467/0.09932, allocations: 168.5 kB / 458.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09933, allocations: 0 / 458.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.0996, allocations: 40 kB / 458.9 MB, free: 15.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * 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 (18): * Single equations (assignments): 18 * 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.0007092/0.1003, allocations: 0.8605 MB / 459.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003297/0.1007, allocations: 143.9 kB / 459.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1007, allocations: 0 / 459.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.1008, allocations: 71.19 kB / 459.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.1012, allocations: 52.28 kB / 460 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.1041, allocations: 2.439 MB / 462.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.1044, allocations: 0.7359 MB / 463.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.723e-05/0.1045, allocations: 25.53 kB / 463.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.1046, allocations: 59.42 kB / 463.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1046, allocations: 0 / 463.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02221/0.1268, allocations: 4.239 MB / 467.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.94/7.067, allocations: 7.844 kB / 467.5 MB, free: 6.852 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)