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.00124/0.00124, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001358/0.001358, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.304/1.304, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 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.2727/0.2727, allocations: 49.57 MB / 337.1 MB, free: 4.207 MB / 270.1 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.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.002057/0.002057, allocations: 67.91 kB / 477.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1087, allocations: 62.43 MB / 0.5269 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003336/0.1121, allocations: 2.078 MB / 0.5289 GB, free: 12.24 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.1131, allocations: 0.6086 MB / 0.5295 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.894e-05/0.1132, allocations: 8 kB / 0.5295 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.1133, allocations: 23.72 kB / 0.5295 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.1135, allocations: 63.48 kB / 0.5296 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001473/0.1137, allocations: 51.88 kB / 0.5296 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002743/0.114, allocations: 207 kB / 0.5298 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.1141, allocations: 32.78 kB / 0.5299 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.1142, allocations: 91.62 kB / 0.53 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.1144, allocations: 87.56 kB / 0.53 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.1144, allocations: 12 kB / 0.5301 GB, free: 11.06 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.1145, allocations: 16 kB / 0.5301 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.83e-05/0.1145, allocations: 35.8 kB / 0.5301 GB, free: 11.01 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.077e-05/0.1146, allocations: 91.52 kB / 0.5302 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.1148, allocations: 159.2 kB / 0.5303 GB, free: 10.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1148, allocations: 0 / 0.5303 GB, free: 10.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1148, allocations: 0 / 0.5303 GB, free: 10.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1148, allocations: 3.938 kB / 0.5304 GB, free: 10.76 MB / 414.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.0007297/0.1156, allocations: 433.2 kB / 0.5308 GB, free: 10.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.1156, allocations: 8.031 kB / 0.5308 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.699e-05/0.1156, allocations: 4.188 kB / 0.5308 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.69e-05/0.1157, allocations: 50.67 kB / 0.5308 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.517e-05/0.1158, allocations: 24.8 kB / 0.5308 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.1161, allocations: 187.1 kB / 0.531 GB, free: 10 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.1161, allocations: 12.38 kB / 0.531 GB, free: 9.988 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.1161, allocations: 12.38 kB / 0.5311 GB, free: 9.977 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.1163, allocations: 131.2 kB / 0.5312 GB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1164, allocations: 0 / 0.5312 GB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.1164, allocations: 4 kB / 0.5312 GB, free: 9.832 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1164, allocations: 4 kB / 0.5312 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.1166, allocations: 75.95 kB / 0.5313 GB, free: 9.754 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007345/0.1173, allocations: 0.5034 MB / 0.5317 GB, free: 9.203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.1176, allocations: 106.6 kB / 0.5318 GB, free: 9.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.156e-05/0.1177, allocations: 45.06 kB / 0.5319 GB, free: 9.043 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.1177, allocations: 7.938 kB / 0.5319 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.1177, allocations: 34.5 kB / 0.5319 GB, free: 8.992 MB / 414.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.1177, allocations: 0 / 0.5319 GB, free: 8.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007966/0.1185, allocations: 372.7 kB / 0.5323 GB, free: 8.594 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.1185, allocations: 55.41 kB / 0.5323 GB, free: 8.527 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.1188, allocations: 221 kB / 0.5326 GB, free: 8.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.1188, allocations: 29.7 kB / 0.5326 GB, free: 8.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.884e-05/0.1189, allocations: 128.3 kB / 0.5327 GB, free: 8.141 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.869e-05/0.1189, allocations: 47.58 kB / 0.5327 GB, free: 8.094 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.119, allocations: 29.72 kB / 0.5328 GB, free: 8.059 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1191, allocations: 330.8 kB / 0.5331 GB, free: 7.727 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.895e-05/0.1192, allocations: 27.98 kB / 0.5331 GB, free: 7.699 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.368e-05/0.1193, allocations: 62.55 kB / 0.5332 GB, free: 7.629 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.1195, allocations: 94.5 kB / 0.5333 GB, free: 7.527 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.1195, allocations: 0 / 0.5333 GB, free: 7.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002545/0.1197, allocations: 153.4 kB / 0.5334 GB, free: 7.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1197, allocations: 4 kB / 0.5334 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.1197, allocations: 0 / 0.5334 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.1197, allocations: 4 kB / 0.5334 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.1199, allocations: 31.98 kB / 0.5335 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.1199, allocations: 3.984 kB / 0.5335 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.608e-05/0.12, allocations: 8 kB / 0.5335 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.12, allocations: 4 kB / 0.5335 GB, free: 7.316 MB / 414.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.0001073/0.1201, allocations: 137.8 kB / 0.5336 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.556e-05/0.1202, allocations: 23.8 kB / 0.5336 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.166e-05/0.1202, allocations: 25.7 kB / 0.5336 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1202, allocations: 3.938 kB / 0.5336 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1202, allocations: 0 / 0.5336 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1202, allocations: 0 / 0.5336 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005302/0.1207, allocations: 413.4 kB / 0.534 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1207, allocations: 0 / 0.534 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.1209, allocations: 31.98 kB / 0.5341 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1209, allocations: 4 kB / 0.5341 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1209, allocations: 0 / 0.5341 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1209, allocations: 0 / 0.5341 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1209, allocations: 4 kB / 0.5341 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.1213, allocations: 264.2 kB / 0.5343 GB, free: 6.344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.947e-05/0.1213, allocations: 27.92 kB / 0.5344 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.1214, allocations: 4 kB / 0.5344 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.1215, allocations: 12 kB / 0.5344 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.1215, allocations: 7.984 kB / 0.5344 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1215, allocations: 4 kB / 0.5344 GB, free: 6.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001604/0.1217, allocations: 168.4 kB / 0.5345 GB, free: 6.125 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1217, allocations: 0 / 0.5345 GB, free: 6.125 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002495/0.1219, allocations: 32 kB / 0.5346 GB, free: 6.094 MB / 414.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.0006274/0.1226, allocations: 0.7943 MB / 0.5354 GB, free: 5.273 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002186/0.1228, allocations: 76.02 kB / 0.5354 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1228, allocations: 3.938 kB / 0.5354 GB, free: 5.195 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.533e-05/0.1229, allocations: 39.98 kB / 0.5355 GB, free: 5.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.1232, allocations: 36.72 kB / 0.5355 GB, free: 5.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.1261, allocations: 2.271 MB / 0.5377 GB, free: 2.762 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.1264, allocations: 0.7281 MB / 0.5384 GB, free: 2.008 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.525e-05/0.1265, allocations: 13.48 kB / 0.5384 GB, free: 1.992 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.944e-05/0.1266, allocations: 55.42 kB / 0.5385 GB, free: 1.938 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1266, allocations: 0 / 0.5385 GB, free: 1.938 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2082/0.3347, allocations: 3.972 MB / 0.5424 GB, free: 22.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.94, allocations: 6.453 kB / 0.5424 GB, free: 22.5 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.58452712208964] Failed to read output from testmodel.py, exit status != 0: 11.109667879994959 11.12943274 11.010662362 Calling exit ...