Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.001384/0.001384, allocations: 121 kB / 18.5 MB, free: 4.562 MB / 14.72 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.001495/0.001495, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 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 1.517/1.517, allocations: 207.6 MB / 231.8 MB, free: 4.062 MB / 174.1 MB " [Timeout remaining time 178] 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.4259/0.4259, allocations: 49.5 MB / 333.2 MB, free: 0.8008 MB / 254.1 MB " [Timeout remaining time 179] 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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 67.84 kB / 471.5 MB, free: 41.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1123, allocations: 62.35 MB / 0.5213 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002533/0.1148, allocations: 2.07 MB / 0.5233 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.1159, allocations: 0.6164 MB / 0.524 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.116, allocations: 3.938 kB / 0.524 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.1162, allocations: 31.72 kB / 0.524 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.1164, allocations: 59.48 kB / 0.524 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001529/0.1166, allocations: 47.88 kB / 0.5241 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002833/0.1169, allocations: 215 kB / 0.5243 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.117, allocations: 40.22 kB / 0.5243 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.1171, allocations: 87.62 kB / 0.5244 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1173, allocations: 79.56 kB / 0.5245 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.1173, allocations: 12 kB / 0.5245 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.1174, allocations: 20 kB / 0.5245 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.775e-05/0.1174, allocations: 27.86 kB / 0.5245 GB, free: 15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.903e-05/0.1175, allocations: 95.45 kB / 0.5246 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.1178, allocations: 159.2 kB / 0.5248 GB, free: 14.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1178, allocations: 0 / 0.5248 GB, free: 14.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1178, allocations: 0 / 0.5248 GB, free: 14.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1178, allocations: 4 kB / 0.5248 GB, free: 14.75 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008694/0.1187, allocations: 0.4906 MB / 0.5253 GB, free: 14.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.1187, allocations: 11.89 kB / 0.5253 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.184e-05/0.1188, allocations: 4.188 kB / 0.5253 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.159e-05/0.1188, allocations: 46.73 kB / 0.5253 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.959e-05/0.1189, allocations: 28.8 kB / 0.5254 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.1193, allocations: 240.9 kB / 0.5256 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.1194, allocations: 12.38 kB / 0.5256 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.1194, allocations: 12.38 kB / 0.5256 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.1197, allocations: 131.8 kB / 0.5257 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.1197, allocations: 4 kB / 0.5257 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.1197, allocations: 4 kB / 0.5257 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.1197, allocations: 4 kB / 0.5258 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002058/0.1199, allocations: 79.94 kB / 0.5258 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009622/0.1209, allocations: 0.5645 MB / 0.5264 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.1212, allocations: 102.5 kB / 0.5265 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1213, allocations: 44.83 kB / 0.5265 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.1213, allocations: 0 / 0.5265 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.034e-05/0.1214, allocations: 34.5 kB / 0.5266 GB, free: 12.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.1214, allocations: 0 / 0.5266 GB, free: 12.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009577/0.1223, allocations: 446.7 kB / 0.527 GB, free: 12.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.1224, allocations: 51.41 kB / 0.527 GB, free: 12.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.1226, allocations: 225 kB / 0.5272 GB, free: 11.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.1226, allocations: 29.7 kB / 0.5273 GB, free: 11.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1227, allocations: 124.4 kB / 0.5274 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.1228, allocations: 55.56 kB / 0.5274 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.909e-05/0.1228, allocations: 33.64 kB / 0.5275 GB, free: 11.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.123, allocations: 334.8 kB / 0.5278 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.1231, allocations: 35.97 kB / 0.5278 GB, free: 11.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.939e-05/0.1232, allocations: 50.56 kB / 0.5279 GB, free: 11.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.1234, allocations: 86.56 kB / 0.528 GB, free: 11.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1234, allocations: 4 kB / 0.528 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003021/0.1237, allocations: 153.4 kB / 0.5281 GB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1237, allocations: 7.938 kB / 0.5281 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1237, allocations: 7.938 kB / 0.5281 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1237, allocations: 0 / 0.5281 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.1239, allocations: 31.98 kB / 0.5282 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1239, allocations: 0 / 0.5282 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.1241, allocations: 8 kB / 0.5282 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.1241, allocations: 8.062 kB / 0.5282 GB, free: 10.98 MB / 398.1 MB 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 (16): * Single equations (assignments): 16 * 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.0001255/0.1242, allocations: 129.8 kB / 0.5283 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.92e-05/0.1242, allocations: 23.8 kB / 0.5283 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.438e-05/0.1243, allocations: 21.72 kB / 0.5283 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1243, allocations: 4 kB / 0.5283 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1243, allocations: 0 / 0.5283 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1243, allocations: 3.984 kB / 0.5283 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006608/0.125, allocations: 438.6 kB / 0.5288 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.125, allocations: 0 / 0.5288 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.1252, allocations: 39.91 kB / 0.5288 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1252, allocations: 0 / 0.5288 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1252, allocations: 3.938 kB / 0.5288 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1252, allocations: 4 kB / 0.5288 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1252, allocations: 0 / 0.5288 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000411/0.1256, allocations: 263.3 kB / 0.5291 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.1257, allocations: 101 kB / 0.5292 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.1257, allocations: 4 kB / 0.5292 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.1258, allocations: 7.984 kB / 0.5292 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.212e-05/0.1259, allocations: 4 kB / 0.5292 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.1259, allocations: 11.98 kB / 0.5292 GB, free: 9.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.1261, allocations: 168.4 kB / 0.5293 GB, free: 9.672 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1261, allocations: 0 / 0.5293 GB, free: 9.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002809/0.1264, allocations: 32 kB / 0.5294 GB, free: 9.641 MB / 398.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 (12): * Single equations (assignments): 12 * 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.0007338/0.1271, allocations: 0.7865 MB / 0.5301 GB, free: 8.828 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.1274, allocations: 79.94 kB / 0.5302 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1274, allocations: 0 / 0.5302 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.67e-05/0.1275, allocations: 47.98 kB / 0.5303 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.1279, allocations: 36.59 kB / 0.5303 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.131, allocations: 2.272 MB / 0.5325 GB, free: 6.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.1314, allocations: 0.7319 MB / 0.5332 GB, free: 5.555 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.1315, allocations: 21.53 kB / 0.5333 GB, free: 5.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.1316, allocations: 51.42 kB / 0.5333 GB, free: 5.48 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1316, allocations: 4 kB / 0.5333 GB, free: 5.477 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.1556, allocations: 3.791 MB / 0.537 GB, free: 1.629 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.719/8.875, allocations: 11.92 kB / 0.537 GB, free: 1.617 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.946950984012801] Failed to read output from testmodel.py, exit status != 0: 9.001854353002273 9.016897218 8.896003839 Calling exit ...