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.001787/0.001787, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002341/0.002341, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.41/1.41, allocations: 207.6 MB / 234.5 MB, free: 9.996 MB / 190.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.2784/0.2784, allocations: 49.57 MB / 336.3 MB, free: 4.191 MB / 270.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.002232/0.002232, allocations: 71.91 kB / 476.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1136, allocations: 62.43 MB / 0.5261 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003887/0.1175, allocations: 2.313 MB / 0.5284 GB, free: 12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1188, allocations: 0.6515 MB / 0.529 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/0.119, allocations: 11.94 kB / 0.529 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001672/0.1192, allocations: 27.66 kB / 0.5291 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003245/0.1195, allocations: 91.27 kB / 0.5291 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.1197, allocations: 63.84 kB / 0.5292 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.1201, allocations: 286.7 kB / 0.5295 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.1203, allocations: 61.44 kB / 0.5295 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.1205, allocations: 111.6 kB / 0.5296 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1207, allocations: 119.3 kB / 0.5298 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.379e-05/0.1208, allocations: 20 kB / 0.5298 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.146e-05/0.1209, allocations: 24 kB / 0.5298 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.602e-05/0.1209, allocations: 51.81 kB / 0.5298 GB, free: 10.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.121, allocations: 123.3 kB / 0.53 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.1214, allocations: 226.9 kB / 0.5302 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1214, allocations: 0 / 0.5302 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1214, allocations: 0 / 0.5302 GB, free: 10.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.1214, allocations: 0 / 0.5302 GB, free: 10.14 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009925/0.1224, allocations: 0.5046 MB / 0.5307 GB, free: 9.609 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1225, allocations: 12.03 kB / 0.5307 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.065e-05/0.1225, allocations: 50.72 kB / 0.5307 GB, free: 9.539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.1226, allocations: 28.8 kB / 0.5308 GB, free: 9.512 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.1231, allocations: 217 kB / 0.531 GB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.421e-05/0.1232, allocations: 63.97 kB / 0.531 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.1232, allocations: 24.12 kB / 0.531 GB, free: 9.176 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00035/0.1236, allocations: 179 kB / 0.5312 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.1236, allocations: 0 / 0.5312 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.1236, allocations: 12 kB / 0.5312 GB, free: 8.977 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1236, allocations: 4 kB / 0.5312 GB, free: 8.973 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.1239, allocations: 115.9 kB / 0.5313 GB, free: 8.859 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.1249, allocations: 0.6087 MB / 0.5319 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003828/0.1253, allocations: 146.6 kB / 0.5321 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.1255, allocations: 72.83 kB / 0.5321 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.1255, allocations: 3.938 kB / 0.5322 GB, free: 7.973 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.1255, allocations: 42.55 kB / 0.5322 GB, free: 7.922 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.733e-06/0.1255, allocations: 0 / 0.5322 GB, free: 7.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001185/0.1267, allocations: 0.5089 MB / 0.5327 GB, free: 7.379 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.1268, allocations: 55.41 kB / 0.5327 GB, free: 7.312 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002617/0.127, allocations: 229.1 kB / 0.533 GB, free: 7.078 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.127, allocations: 33.7 kB / 0.533 GB, free: 7.039 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.1271, allocations: 160.4 kB / 0.5331 GB, free: 6.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.574e-05/0.1272, allocations: 75.36 kB / 0.5332 GB, free: 6.801 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-05/0.1273, allocations: 41.66 kB / 0.5333 GB, free: 6.754 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1274, allocations: 338.8 kB / 0.5336 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.1276, allocations: 55.97 kB / 0.5336 GB, free: 6.359 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.1277, allocations: 85.61 kB / 0.5337 GB, free: 6.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.128, allocations: 145.5 kB / 0.5339 GB, free: 6.121 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.128, allocations: 0 / 0.5339 GB, free: 6.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003967/0.1284, allocations: 201.4 kB / 0.534 GB, free: 5.918 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1284, allocations: 4 kB / 0.5341 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1285, allocations: 0 / 0.5341 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.1285, allocations: 8.031 kB / 0.5341 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.1289, allocations: 79.89 kB / 0.5341 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.1289, allocations: 0 / 0.5341 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.129, allocations: 11.98 kB / 0.5341 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.1291, allocations: 8 kB / 0.5342 GB, free: 5.809 MB / 414.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.0001319/0.1292, allocations: 133.7 kB / 0.5343 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.195e-05/0.1292, allocations: 23.86 kB / 0.5343 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.797e-05/0.1293, allocations: 34.11 kB / 0.5343 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1293, allocations: 0 / 0.5343 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1293, allocations: 0 / 0.5343 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.1293, allocations: 7.984 kB / 0.5343 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008714/0.1302, allocations: 0.513 MB / 0.5348 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1302, allocations: 0 / 0.5348 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003715/0.1306, allocations: 63.95 kB / 0.5349 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1306, allocations: 0 / 0.5349 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1306, allocations: 8 kB / 0.5349 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.1306, allocations: 3.938 kB / 0.5349 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1306, allocations: 0 / 0.5349 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005769/0.1312, allocations: 351.2 kB / 0.5353 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.056e-05/0.1313, allocations: 35.88 kB / 0.5353 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.1313, allocations: 8 kB / 0.5353 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.1314, allocations: 11.94 kB / 0.5353 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.1315, allocations: 11.97 kB / 0.5353 GB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.1315, allocations: 4 kB / 0.5353 GB, free: 4.535 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.1317, allocations: 172.5 kB / 0.5355 GB, free: 4.367 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1317, allocations: 0 / 0.5355 GB, free: 4.367 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.132, allocations: 44 kB / 0.5355 GB, free: 4.324 MB / 414.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.0008508/0.1328, allocations: 0.8845 MB / 0.5364 GB, free: 3.414 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003692/0.1332, allocations: 139.9 kB / 0.5365 GB, free: 3.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1332, allocations: 8 kB / 0.5365 GB, free: 3.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.1334, allocations: 75.89 kB / 0.5366 GB, free: 3.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.1338, allocations: 44.36 kB / 0.5366 GB, free: 3.152 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003603/0.1374, allocations: 2.613 MB / 0.5392 GB, free: 464 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1951/0.3325, allocations: 0.7449 MB / 0.5399 GB, free: 21.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.3326, allocations: 18.88 kB / 0.5399 GB, free: 21.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3327, allocations: 72.98 kB / 0.54 GB, free: 21.9 MB / 414.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3327, allocations: 0 / 0.54 GB, free: 21.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03499/0.3677, allocations: 4.781 MB / 0.5447 GB, free: 21.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.43, allocations: 6.469 kB / 0.5447 GB, free: 21.21 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.187058710027486] Failed to read output from testmodel.py, exit status != 0: 11.536612626863644 11.558978546 11.433320537 Calling exit ...