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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009906/0.0009906, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009468/0.0009468, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8673/0.8673, allocations: 158.6 MB / 185.7 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.1657/0.1657, allocations: 36.34 MB / 274.3 MB, free: 10.91 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.82e-07/9.82e-07, allocations: 0 / 414.3 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.302e-05, allocations: 2.281 kB / 414.3 MB, free: 6.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.002065/0.002078, allocations: 2.075 MB / 416.4 MB, free: 4.016 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007194/0.002798, allocations: 0.6006 MB / 417 MB, free: 3.406 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.06e-05/0.002888, allocations: 7.938 kB / 417 MB, free: 3.398 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.002991, allocations: 23.73 kB / 417 MB, free: 3.375 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.003173, allocations: 83.27 kB / 417.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.003308, allocations: 51.92 kB / 417.2 MB, free: 3.242 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.003512, allocations: 258.8 kB / 417.4 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.003629, allocations: 28.58 kB / 417.4 MB, free: 2.957 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.003771, allocations: 151.5 kB / 417.6 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.003872, allocations: 75.72 kB / 417.7 MB, free: 2.734 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.003893, allocations: 16 kB / 417.7 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.759e-05/0.003941, allocations: 20 kB / 417.7 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.806e-05/0.003969, allocations: 43.77 kB / 417.7 MB, free: 2.656 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.004019, allocations: 71.77 kB / 417.8 MB, free: 2.586 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.00421, allocations: 191.3 kB / 418 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.734e-06/0.004212, allocations: 0 / 418 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.004213, allocations: 0 / 418 MB, free: 2.398 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.004216, allocations: 0 / 418 MB, free: 2.398 MB / 346.7 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.0005421/0.004759, allocations: 465 kB / 418.5 MB, free: 1.914 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.00479, allocations: 8.031 kB / 418.5 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.502e-05/0.004825, allocations: 50.73 kB / 418.5 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.696e-05/0.004892, allocations: 32.75 kB / 418.5 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.005113, allocations: 200.8 kB / 418.7 MB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.005125, allocations: 20.31 kB / 418.8 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.005154, allocations: 12.38 kB / 418.8 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.00534, allocations: 151.8 kB / 418.9 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.005351, allocations: 4.172 kB / 418.9 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.005365, allocations: 12.12 kB / 418.9 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.005371, allocations: 8 kB / 418.9 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.005515, allocations: 95.92 kB / 419 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.006056, allocations: 0.5269 MB / 419.6 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.006219, allocations: 118.5 kB / 419.7 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.964e-05/0.006299, allocations: 64.77 kB / 419.7 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.006311, allocations: 11.94 kB / 419.8 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/0.006327, allocations: 34.56 kB / 419.8 MB, free: 472 kB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.032e-06/0.006328, allocations: 0 / 419.8 MB, free: 472 kB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.000679/0.007007, allocations: 496.9 kB / 420.3 MB, free: 15.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.61e-05/0.007033, allocations: 59.39 kB / 420.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.007187, allocations: 221.8 kB / 420.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.0072, allocations: 29.7 kB / 420.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.437e-05/0.007265, allocations: 144.4 kB / 420.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.007297, allocations: 63.44 kB / 420.8 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.007338, allocations: 41.7 kB / 420.8 MB, free: 15.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.571e-05/0.007414, allocations: 334.8 kB / 421.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.849e-05/0.007482, allocations: 47.97 kB / 421.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.149e-05/0.007564, allocations: 86.27 kB / 421.3 MB, free: 14.88 MB / 362.7 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.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0006509/0.008214, allocations: 342.2 kB / 421.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.008216, allocations: 4 kB / 421.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000201/0.008417, allocations: 189.4 kB / 421.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.008428, allocations: 8 kB / 421.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.008433, allocations: 3.75 kB / 421.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.008442, allocations: 0 / 421.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.00857, allocations: 63.89 kB / 421.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.008574, allocations: 0 / 421.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.984e-05/0.008634, allocations: 8 kB / 421.9 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.008641, allocations: 8.031 kB / 421.9 MB, free: 14.25 MB / 362.7 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 8.067e-05/0.008722, allocations: 145.7 kB / 422 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.008746, allocations: 19.86 kB / 422.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.268e-05/0.008778, allocations: 26.06 kB / 422.1 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.008781, allocations: 4.047 kB / 422.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.008785, allocations: 3.984 kB / 422.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.008789, allocations: 3.984 kB / 422.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004402/0.009229, allocations: 477.3 kB / 422.6 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.00923, allocations: 8 kB / 422.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.009364, allocations: 43.97 kB / 422.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.009367, allocations: 4 kB / 422.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.009378, allocations: 11.92 kB / 422.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.009379, allocations: 0 / 422.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.00938, allocations: 0 / 422.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.009675, allocations: 334.1 kB / 423 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.009722, allocations: 35.88 kB / 423 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.009739, allocations: 4 kB / 423 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.899e-05/0.009808, allocations: 8 kB / 423 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.009842, allocations: 11.97 kB / 423 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.009848, allocations: 8 kB / 423 MB, free: 13.06 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.643e-05/0.009945, allocations: 165.2 kB / 423.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009945, allocations: 0 / 423.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001812/0.01013, allocations: 40 kB / 423.2 MB, free: 12.86 MB / 362.7 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.0004375/0.01056, allocations: 0.8645 MB / 424.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001979/0.01076, allocations: 127.8 kB / 424.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01076, allocations: 4 kB / 424.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.505e-05/0.01084, allocations: 66.72 kB / 424.3 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002398/0.01108, allocations: 41.44 kB / 424.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.01296, allocations: 2.378 MB / 426.7 MB, free: 9.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.95e-05/0.01305, allocations: 133.8 kB / 426.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.276e-05/0.01311, allocations: 21.64 kB / 426.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.088e-05/0.0132, allocations: 64.47 kB / 426.9 MB, free: 9.02 MB / 362.7 MB Notification: Performance of SimCode: time 6.51e-07/0.0132, allocations: 0 / 426.9 MB, free: 9.02 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01703/0.03023, allocations: 5.15 MB / 432.1 MB, free: 3.824 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.016/7.046, allocations: 3.859 kB / 432.1 MB, free: 3.82 MB / 362.7 MB " [Timeout remaining time 653] (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 --stepSize=0.005 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.896049276925623] Failed to read output from testmodel.py, exit status != 0: 7.131917321123183 7.142513013 7.135679766 Calling exit ...