Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.00114/0.00114, allocations: 114.2 kB / 16.63 MB, free: 6.941 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.00114/0.00114, allocations: 197.9 kB / 17.55 MB, free: 6.039 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.23/1.23, allocations: 205.1 MB / 223.4 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.241/0.241, 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.00128/0.00128, allocations: 68.22 kB / 389.6 MB, free: 48.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0739/0.07519, allocations: 59.16 MB / 448.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.00302/0.07824, allocations: 2.446 MB / 451.3 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008542/0.0791, allocations: 0.6747 MB / 451.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.07922, allocations: 4 kB / 451.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.07934, allocations: 23.78 kB / 452 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.07954, allocations: 67.45 kB / 452 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001353/0.07968, allocations: 55.95 kB / 452.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.07993, allocations: 286.8 kB / 452.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.08008, allocations: 65.59 kB / 452.4 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.08022, allocations: 111.5 kB / 452.5 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.08037, allocations: 131.3 kB / 452.7 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.08041, allocations: 16 kB / 452.7 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.671e-05/0.08047, allocations: 24 kB / 452.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.181e-05/0.08051, allocations: 43.83 kB / 452.7 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.867e-05/0.08061, allocations: 123.3 kB / 452.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.08083, allocations: 231 kB / 453.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.08084, allocations: 4 kB / 453.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08084, allocations: 0 / 453.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.08086, allocations: 0 / 453.1 MB, free: 5.719 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007612/0.08163, allocations: 0.5568 MB / 453.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.08167, allocations: 11.89 kB / 453.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.308e-05/0.08172, allocations: 46.73 kB / 453.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.185e-05/0.08181, allocations: 36.56 kB / 453.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.08206, allocations: 266.7 kB / 454 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.08212, allocations: 42.27 kB / 454 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.08216, allocations: 28.03 kB / 454.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.08247, allocations: 179 kB / 454.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.08248, allocations: 0 / 454.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.08251, allocations: 8 kB / 454.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.08252, allocations: 4 kB / 454.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/0.08278, allocations: 123.9 kB / 454.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008203/0.08361, allocations: 0.6734 MB / 455 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.08392, allocations: 146.5 kB / 455.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.08408, allocations: 80.86 kB / 455.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.0841, allocations: 4 kB / 455.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.08413, allocations: 38.56 kB / 455.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.162e-06/0.08414, allocations: 0 / 455.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009513/0.08509, allocations: 0.5792 MB / 455.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.08513, allocations: 51.41 kB / 455.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.08533, allocations: 248.9 kB / 456.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.08536, allocations: 25.7 kB / 456.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.08544, allocations: 152.3 kB / 456.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.791e-05/0.08549, allocations: 67.02 kB / 456.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.61e-05/0.08555, allocations: 37.7 kB / 456.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.427e-05/0.08565, allocations: 342.8 kB / 456.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.08578, allocations: 55.97 kB / 456.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.08592, allocations: 85.61 kB / 456.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.08618, allocations: 141.4 kB / 457.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.08619, allocations: 0 / 457.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003291/0.08652, allocations: 213.2 kB / 457.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.08654, allocations: 4 kB / 457.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.08655, allocations: 0 / 457.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.08657, allocations: 7.984 kB / 457.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.08696, allocations: 71.95 kB / 457.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.08697, allocations: 0 / 457.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.0871, allocations: 12 kB / 457.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.08712, allocations: 4.031 kB / 457.4 MB, free: 1.125 MB / 334.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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 9.32e-05/0.08722, allocations: 138.4 kB / 457.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.816e-05/0.08727, allocations: 27.7 kB / 457.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.757e-05/0.08732, allocations: 26.19 kB / 457.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.08733, allocations: 0 / 457.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.08734, allocations: 4 kB / 457.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.08735, allocations: 7.984 kB / 457.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006291/0.08798, allocations: 0.5465 MB / 458.1 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.08799, allocations: 0 / 458.1 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003522/0.08835, allocations: 59.97 kB / 458.2 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.08836, allocations: 0 / 458.2 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.08838, allocations: 4 kB / 458.2 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.08839, allocations: 3.938 kB / 458.2 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.0884, allocations: 7.922 kB / 458.2 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.08889, allocations: 351.4 kB / 458.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.199e-05/0.08899, allocations: 108.8 kB / 458.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.08902, allocations: 8 kB / 458.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.08918, allocations: 11.94 kB / 458.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.227e-05/0.08923, allocations: 7.984 kB / 458.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.08925, allocations: 11.98 kB / 458.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001334/0.08939, allocations: 172.5 kB / 458.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08939, allocations: 0 / 458.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002511/0.08965, allocations: 48 kB / 458.9 MB, free: 15.5 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: 1 (BreakerCommand.y) * 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.0006847/0.09034, allocations: 0.8917 MB / 459.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003193/0.09067, allocations: 163.7 kB / 460 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.09068, allocations: 0 / 460 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.09082, allocations: 79.91 kB / 460 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.09119, allocations: 44.28 kB / 460.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.09406, allocations: 2.673 MB / 462.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.09434, allocations: 0.7478 MB / 463.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.075e-05/0.09444, allocations: 21.94 kB / 463.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.09455, allocations: 71.41 kB / 463.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09456, allocations: 8 kB / 463.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.1092, allocations: 4.279 MB / 467.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/0.1094, allocations: 215.1 kB / 468.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.627/1.736, allocations: 3.938 kB / 468.1 MB, free: 6.094 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)