Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.001108/0.001108, allocations: 108.1 kB / 16.62 MB, free: 6.961 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.001099/0.001099, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.193/1.193, allocations: 205.1 MB / 223.4 MB, free: 12.38 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2283/0.2283, allocations: 48.84 MB / 319.6 MB, free: 11.27 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.001324/0.001324, allocations: 64.31 kB / 389.6 MB, free: 48.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07614/0.07748, allocations: 59.15 MB / 448.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003375/0.08089, allocations: 2.453 MB / 451.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.08198, allocations: 0.6747 MB / 451.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.08213, allocations: 4 kB / 451.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.08226, allocations: 19.78 kB / 452 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.0825, allocations: 71.41 kB / 452 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.08266, allocations: 55.95 kB / 452.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002673/0.08294, allocations: 270.8 kB / 452.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.0831, allocations: 64.72 kB / 452.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.08325, allocations: 107.5 kB / 452.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.08341, allocations: 119.4 kB / 452.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.08344, allocations: 16 kB / 452.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.08351, allocations: 24 kB / 452.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.143e-05/0.08356, allocations: 51.77 kB / 452.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.08366, allocations: 119.3 kB / 452.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.0839, allocations: 219.4 kB / 453 MB, free: 5.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.08391, allocations: 0 / 453 MB, free: 5.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.08392, allocations: 4 kB / 453.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.08393, allocations: 0 / 453.1 MB, free: 5.762 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0007592/0.08469, allocations: 0.5513 MB / 453.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.08473, allocations: 11.89 kB / 453.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.333e-05/0.08478, allocations: 46.73 kB / 453.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.0849, allocations: 32.56 kB / 453.7 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.08516, allocations: 262.8 kB / 453.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.08518, allocations: 12.31 kB / 454 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.08522, allocations: 20.36 kB / 454 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.08552, allocations: 179.1 kB / 454.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.08554, allocations: 4 kB / 454.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.08556, allocations: 4 kB / 454.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.08557, allocations: 7.984 kB / 454.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002389/0.08582, allocations: 111.9 kB / 454.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00085/0.08668, allocations: 0.6579 MB / 454.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002273/0.08691, allocations: 138.5 kB / 455.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.08705, allocations: 80.77 kB / 455.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.08708, allocations: 0 / 455.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.08711, allocations: 34.56 kB / 455.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 9.52e-07/0.08712, allocations: 0 / 455.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009091/0.08803, allocations: 0.5475 MB / 455.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.08807, allocations: 51.41 kB / 455.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.08828, allocations: 233 kB / 456 MB, free: 2.547 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.08831, allocations: 29.64 kB / 456 MB, free: 2.512 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/0.08839, allocations: 156.2 kB / 456.2 MB, free: 2.355 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.949e-05/0.08845, allocations: 63.02 kB / 456.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.08851, allocations: 45.7 kB / 456.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.08862, allocations: 338.8 kB / 456.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.08873, allocations: 47.97 kB / 456.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.08886, allocations: 73.55 kB / 456.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.08909, allocations: 137.5 kB / 456.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.21e-07/0.0891, allocations: 0 / 456.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000303/0.08941, allocations: 201.4 kB / 457.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.08943, allocations: 4 kB / 457.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.08944, allocations: 0 / 457.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.08945, allocations: 0 / 457.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.0898, allocations: 67.95 kB / 457.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.09082, allocations: 1.445 MB / 458.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.09096, allocations: 12.02 kB / 458.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.09098, allocations: 7.938 kB / 458.6 MB, free: 15.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.09109, allocations: 125.8 kB / 458.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.344e-05/0.09114, allocations: 27.72 kB / 458.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003348/0.09148, allocations: 191.7 kB / 459 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.09149, allocations: 0 / 459 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.0915, allocations: 0 / 459 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.09151, allocations: 3.984 kB / 459 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006198/0.09213, allocations: 0.5296 MB / 459.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.09215, allocations: 0 / 459.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.09237, allocations: 51.92 kB / 459.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.09238, allocations: 0 / 459.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.0924, allocations: 7.984 kB / 459.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.09241, allocations: 4 kB / 459.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.09241, allocations: 0 / 459.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004304/0.09285, allocations: 347.3 kB / 459.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.536e-05/0.09295, allocations: 108.9 kB / 460 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.09298, allocations: 4 kB / 460 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.09312, allocations: 7.984 kB / 460 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.09317, allocations: 11.98 kB / 460 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.09319, allocations: 4 kB / 460 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.09332, allocations: 168.5 kB / 460.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09333, allocations: 0 / 460.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.09361, allocations: 48 kB / 460.2 MB, free: 14.03 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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.0006842/0.0943, allocations: 0.8798 MB / 461.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005251/0.09483, allocations: 183.9 kB / 461.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.09484, allocations: 0 / 461.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.09499, allocations: 71.91 kB / 461.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.09534, allocations: 41.09 kB / 461.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.09832, allocations: 2.65 MB / 464.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.09863, allocations: 0.7521 MB / 464.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.993e-05/0.09874, allocations: 29.45 kB / 464.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.09886, allocations: 83.41 kB / 464.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of SimCode: time 5.62e-07/0.09886, allocations: 0 / 464.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01643/0.1153, allocations: 4.731 MB / 469.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/0.1155, allocations: 203.1 kB / 469.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/1.819, allocations: 0 / 469.8 MB, free: 4.203 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)