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.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.001682/0.001682, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001923/0.001923, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.378/1.378, allocations: 207.6 MB / 231.1 MB, free: 4.109 MB / 174.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.4014/0.4014, allocations: 49.5 MB / 332.5 MB, free: 0.6953 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.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"}) [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.002084/0.002084, allocations: 78.95 kB / 470.8 MB, free: 41.03 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1081, allocations: 62.35 MB / 0.5206 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.002646/0.1107, allocations: 2.306 MB / 0.5229 GB, free: 12 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.1119, allocations: 0.6514 MB / 0.5235 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.112, allocations: 7.938 kB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.1121, allocations: 31.59 kB / 0.5236 GB, free: 15.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.1124, allocations: 91.27 kB / 0.5237 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.1125, allocations: 63.92 kB / 0.5237 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000371/0.1129, allocations: 286.7 kB / 0.524 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.1131, allocations: 53.31 kB / 0.524 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.1133, allocations: 111.5 kB / 0.5241 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.1134, allocations: 119.4 kB / 0.5243 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.1135, allocations: 20 kB / 0.5243 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.489e-05/0.1135, allocations: 24 kB / 0.5243 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.943e-05/0.1136, allocations: 59.75 kB / 0.5244 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.1137, allocations: 115.3 kB / 0.5245 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003516/0.1141, allocations: 230.9 kB / 0.5247 GB, free: 14.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1141, allocations: 3.938 kB / 0.5247 GB, free: 14.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1141, allocations: 0 / 0.5247 GB, free: 14.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1141, allocations: 0 / 0.5247 GB, free: 14.15 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.000987/0.1151, allocations: 0.5721 MB / 0.5253 GB, free: 13.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1151, allocations: 11.89 kB / 0.5253 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.611e-05/0.1152, allocations: 54.73 kB / 0.5253 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.8e-05/0.1153, allocations: 28.8 kB / 0.5253 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.1157, allocations: 274.9 kB / 0.5256 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.176e-05/0.1157, allocations: 42.27 kB / 0.5256 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.1158, allocations: 20.12 kB / 0.5257 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003529/0.1161, allocations: 183 kB / 0.5258 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1161, allocations: 0 / 0.5258 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.1162, allocations: 4 kB / 0.5258 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.1162, allocations: 4 kB / 0.5258 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003065/0.1165, allocations: 123.9 kB / 0.526 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000996/0.1175, allocations: 0.666 MB / 0.5266 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003724/0.1178, allocations: 146.5 kB / 0.5268 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.118, allocations: 72.83 kB / 0.5268 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.118, allocations: 0 / 0.5268 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1181, allocations: 42.5 kB / 0.5269 GB, free: 11.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.142e-06/0.1181, allocations: 0 / 0.5269 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001269/0.1193, allocations: 0.5853 MB / 0.5274 GB, free: 11.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.1194, allocations: 55.34 kB / 0.5275 GB, free: 11.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.1197, allocations: 244.9 kB / 0.5277 GB, free: 10.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.1197, allocations: 25.7 kB / 0.5277 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.1198, allocations: 148.5 kB / 0.5279 GB, free: 10.6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.577e-05/0.1199, allocations: 79.31 kB / 0.528 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.343e-05/0.12, allocations: 41.7 kB / 0.528 GB, free: 10.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.1202, allocations: 342.8 kB / 0.5283 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.1203, allocations: 51.97 kB / 0.5284 GB, free: 10.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.1205, allocations: 86.27 kB / 0.5285 GB, free: 9.988 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.1208, allocations: 145.5 kB / 0.5286 GB, free: 9.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1208, allocations: 0 / 0.5286 GB, free: 9.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004012/0.1212, allocations: 205.4 kB / 0.5288 GB, free: 9.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1212, allocations: 4 kB / 0.5288 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1212, allocations: 0 / 0.5288 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.1213, allocations: 4 kB / 0.5288 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.1217, allocations: 79.92 kB / 0.5289 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.1217, allocations: 0 / 0.5289 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.1218, allocations: 12 kB / 0.5289 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.1218, allocations: 4 kB / 0.5289 GB, free: 9.531 MB / 398.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 0.0001435/0.122, allocations: 137.7 kB / 0.529 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.122, allocations: 27.86 kB / 0.5291 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.553e-05/0.1221, allocations: 22.19 kB / 0.5291 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1221, allocations: 3.984 kB / 0.5291 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1221, allocations: 8 kB / 0.5291 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1221, allocations: 0 / 0.5291 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008604/0.123, allocations: 0.5412 MB / 0.5296 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.123, allocations: 0 / 0.5296 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003692/0.1233, allocations: 59.97 kB / 0.5297 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1233, allocations: 3.984 kB / 0.5297 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.1234, allocations: 8 kB / 0.5297 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.1234, allocations: 7.938 kB / 0.5297 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1234, allocations: 0 / 0.5297 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006106/0.124, allocations: 355.5 kB / 0.53 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.1241, allocations: 113 kB / 0.5301 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.1241, allocations: 4 kB / 0.5301 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1243, allocations: 19.88 kB / 0.5302 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/0.1243, allocations: 11.97 kB / 0.5302 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.1243, allocations: 8 kB / 0.5302 GB, free: 8.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001797/0.1245, allocations: 168.5 kB / 0.5303 GB, free: 7.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1245, allocations: 0 / 0.5303 GB, free: 7.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002871/0.1248, allocations: 48 kB / 0.5304 GB, free: 7.902 MB / 398.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.0009274/0.1257, allocations: 0.8841 MB / 0.5313 GB, free: 6.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003943/0.1261, allocations: 139.8 kB / 0.5314 GB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1261, allocations: 0 / 0.5314 GB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.1263, allocations: 71.97 kB / 0.5315 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.1267, allocations: 41.03 kB / 0.5315 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.1304, allocations: 2.615 MB / 0.534 GB, free: 4.043 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.131, allocations: 0.7478 MB / 0.5348 GB, free: 3.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.1311, allocations: 21.94 kB / 0.5348 GB, free: 3.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.1313, allocations: 75.41 kB / 0.5349 GB, free: 3.172 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1313, allocations: 4 kB / 0.5349 GB, free: 3.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02934/0.1606, allocations: 4.559 MB / 0.5393 GB, free: 14.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.067, allocations: 7.734 kB / 0.5393 GB, free: 14.55 MB / 414.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.07661563900183] Failed to read output from testmodel.py, exit status != 0: 8.133785790996626 8.148082699 8.031270641 Calling exit ...