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.001152/0.001152, allocations: 108 kB / 16.62 MB, free: 6.812 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.001158/0.001158, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.211/1.211, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2415/0.2415, allocations: 48.83 MB / 319.6 MB, free: 11.29 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.001336/0.001336, allocations: 69.31 kB / 389.7 MB, free: 48.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08062/0.08197, allocations: 59.16 MB / 448.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003296/0.08529, allocations: 2.352 MB / 451.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009318/0.08624, allocations: 0.6358 MB / 451.8 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.08635, allocations: 4 kB / 451.8 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.08648, allocations: 23.78 kB / 451.8 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.08668, allocations: 67.53 kB / 451.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.08687, allocations: 35.97 kB / 451.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002513/0.08713, allocations: 250.8 kB / 452.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.08728, allocations: 60.64 kB / 452.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.08741, allocations: 95.53 kB / 452.3 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.08756, allocations: 99.53 kB / 452.4 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.08759, allocations: 16 kB / 452.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.426e-05/0.08765, allocations: 20 kB / 452.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.0877, allocations: 39.78 kB / 452.5 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.973e-05/0.08779, allocations: 103.4 kB / 452.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.08799, allocations: 195.2 kB / 452.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.088, allocations: 0 / 452.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.08801, allocations: 4 kB / 452.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.269e-06/0.08802, allocations: 0 / 452.8 MB, free: 6.02 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.0008168/0.08884, allocations: 0.5334 MB / 453.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.08889, allocations: 11.89 kB / 453.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.59e-05/0.08894, allocations: 54.67 kB / 453.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.946e-05/0.08903, allocations: 24.66 kB / 453.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.0893, allocations: 258.8 kB / 453.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.08932, allocations: 8.375 kB / 453.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.08936, allocations: 20.31 kB / 453.7 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.08962, allocations: 159.4 kB / 453.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.08964, allocations: 0 / 453.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.08966, allocations: 4 kB / 453.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.08967, allocations: 8 kB / 453.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.0899, allocations: 103.9 kB / 454 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000833/0.09074, allocations: 0.6074 MB / 454.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.09097, allocations: 126.5 kB / 454.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.09119, allocations: 76.75 kB / 454.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.09121, allocations: 288 / 454.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.09125, allocations: 46.5 kB / 454.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 9.32e-07/0.09125, allocations: 0 / 454.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009222/0.09218, allocations: 0.5403 MB / 455.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.09226, allocations: 55.41 kB / 455.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.09247, allocations: 225 kB / 455.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.09249, allocations: 33.7 kB / 455.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.09258, allocations: 144.3 kB / 455.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.191e-05/0.09263, allocations: 55.11 kB / 455.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.579e-05/0.09269, allocations: 41.7 kB / 455.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.0928, allocations: 330.8 kB / 456.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.09292, allocations: 51.97 kB / 456.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.09304, allocations: 82.34 kB / 456.4 MB, free: 2.164 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.001098/0.09415, allocations: 418.3 kB / 456.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.09416, allocations: 8 kB / 456.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003/0.09447, allocations: 189.2 kB / 457 MB, free: 1.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.09449, allocations: 4 kB / 457 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.0945, allocations: 3.938 kB / 457 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.09452, allocations: 4 kB / 457 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.09475, allocations: 59.95 kB / 457 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.09477, allocations: 0 / 457 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.09489, allocations: 12.03 kB / 457 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.09491, allocations: 11.94 kB / 457 MB, free: 1.438 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.0001687/0.09508, allocations: 133.8 kB / 457.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.09513, allocations: 23.66 kB / 457.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.09518, allocations: 26.19 kB / 457.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.09519, allocations: 3.984 kB / 457.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.0952, allocations: 48 / 457.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.09521, allocations: 3.984 kB / 457.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006172/0.09583, allocations: 0.5325 MB / 457.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.09584, allocations: 0 / 457.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.0961, allocations: 51.97 kB / 457.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.09611, allocations: 0 / 457.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.09613, allocations: 8 kB / 457.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.09614, allocations: 0 / 457.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.09615, allocations: 3.938 kB / 457.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.09657, allocations: 335 kB / 458.2 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.019e-05/0.09666, allocations: 104.9 kB / 458.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.0967, allocations: 8 kB / 458.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.09684, allocations: 3.984 kB / 458.3 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.09689, allocations: 19.92 kB / 458.3 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.09691, allocations: 11.94 kB / 458.3 MB, free: 92 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001441/0.09705, allocations: 164.5 kB / 458.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09706, allocations: 0 / 458.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.09733, allocations: 40 kB / 458.5 MB, free: 15.89 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.0007732/0.09811, allocations: 0.8605 MB / 459.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.09843, allocations: 140.9 kB / 459.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.09844, allocations: 0 / 459.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.09856, allocations: 71.91 kB / 459.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.09898, allocations: 44.23 kB / 459.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.1018, allocations: 2.508 MB / 462.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.1021, allocations: 0.7398 MB / 462.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.807e-05/0.1022, allocations: 29.52 kB / 462.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.629e-05/0.1023, allocations: 55.42 kB / 462.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of SimCode: time 1.623e-06/0.1023, allocations: 0 / 462.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01506/0.1173, allocations: 4.116 MB / 467.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/0.1176, allocations: 215.1 kB / 467.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/1.752, allocations: 0 / 467.3 MB, free: 6.887 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)