Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.001381/0.001381, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001742/0.001742, allocations: 212.4 kB / 23.73 MB, free: 4.387 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.445/1.445, allocations: 207.7 MB / 234.6 MB, free: 9.785 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.2973/0.2973, allocations: 49.6 MB / 336.4 MB, free: 3.871 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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.002338/0.002338, allocations: 67.91 kB / 476.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1247, allocations: 62.42 MB / 0.5261 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004502/0.1292, allocations: 2.902 MB / 0.529 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.1307, allocations: 0.8109 MB / 0.5298 GB, free: 10.4 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.1309, allocations: 4 kB / 0.5298 GB, free: 10.4 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.1311, allocations: 59.27 kB / 0.5298 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003728/0.1314, allocations: 158.8 kB / 0.53 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.1317, allocations: 123.8 kB / 0.5301 GB, free: 10.06 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005747/0.1323, allocations: 0.5216 MB / 0.5306 GB, free: 9.539 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.1325, allocations: 97.95 kB / 0.5307 GB, free: 9.438 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000281/0.1328, allocations: 215.1 kB / 0.5309 GB, free: 9.227 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.1331, allocations: 202.8 kB / 0.5311 GB, free: 9.027 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.297e-05/0.1331, allocations: 40 kB / 0.5311 GB, free: 8.988 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.915e-05/0.1332, allocations: 36 kB / 0.5312 GB, free: 8.953 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.772e-05/0.1333, allocations: 99.55 kB / 0.5313 GB, free: 8.855 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.1335, allocations: 183 kB / 0.5314 GB, free: 8.676 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005209/0.134, allocations: 441.9 kB / 0.5319 GB, free: 8.242 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.134, allocations: 4 kB / 0.5319 GB, free: 8.238 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.134, allocations: 0 / 0.5319 GB, free: 8.238 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.1341, allocations: 0 / 0.5319 GB, free: 8.238 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001421/0.1355, allocations: 0.7381 MB / 0.5326 GB, free: 7.469 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1355, allocations: 8.031 kB / 0.5326 GB, free: 7.461 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.22e-05/0.1356, allocations: 70.72 kB / 0.5327 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.1357, allocations: 60.61 kB / 0.5327 GB, free: 7.324 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005556/0.1363, allocations: 304.5 kB / 0.533 GB, free: 7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.1363, allocations: 29.03 kB / 0.533 GB, free: 6.973 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/0.1364, allocations: 40.33 kB / 0.5331 GB, free: 6.934 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.137, allocations: 318 kB / 0.5334 GB, free: 6.605 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.137, allocations: 0 / 0.5334 GB, free: 6.605 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.137, allocations: 16 kB / 0.5334 GB, free: 6.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.137, allocations: 8 kB / 0.5334 GB, free: 6.582 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.1374, allocations: 214.5 kB / 0.5336 GB, free: 6.375 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.1393, allocations: 1.026 MB / 0.5346 GB, free: 5.289 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.1398, allocations: 249.2 kB / 0.5348 GB, free: 5.039 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.14, allocations: 121.3 kB / 0.535 GB, free: 4.918 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.14, allocations: 4.281 kB / 0.535 GB, free: 4.914 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.1401, allocations: 38.84 kB / 0.535 GB, free: 4.867 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.914e-06/0.1401, allocations: 0 / 0.535 GB, free: 4.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002125/0.1422, allocations: 0.8652 MB / 0.5358 GB, free: 3.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.1422, allocations: 59.41 kB / 0.5359 GB, free: 3.898 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.1427, allocations: 377.6 kB / 0.5363 GB, free: 3.523 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.1427, allocations: 29.7 kB / 0.5363 GB, free: 3.488 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.1429, allocations: 236.9 kB / 0.5365 GB, free: 3.254 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.143, allocations: 130.9 kB / 0.5366 GB, free: 3.125 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.1431, allocations: 74.08 kB / 0.5367 GB, free: 3.047 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.1433, allocations: 354.7 kB / 0.5371 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1435, allocations: 96.77 kB / 0.5371 GB, free: 2.598 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.1438, allocations: 144.6 kB / 0.5373 GB, free: 2.441 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000439/0.1442, allocations: 260 kB / 0.5375 GB, free: 2.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1442, allocations: 0 / 0.5375 GB, free: 2.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005922/0.1448, allocations: 345.2 kB / 0.5379 GB, free: 1.828 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1448, allocations: 4 kB / 0.5379 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1448, allocations: 4 kB / 0.5379 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1448, allocations: 0 / 0.5379 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007371/0.1456, allocations: 152 kB / 0.538 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.1468, allocations: 1.334 MB / 0.5393 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/0.1471, allocations: 15.98 kB / 0.5393 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.1471, allocations: 8 kB / 0.5393 GB, free: 200 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.1473, allocations: 161.9 kB / 0.5395 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2021/0.3494, allocations: 43.62 kB / 0.5395 GB, free: 23.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006711/0.3501, allocations: 310.9 kB / 0.5398 GB, free: 23.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3501, allocations: 3.219 kB / 0.5398 GB, free: 23.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.3501, allocations: 0 / 0.5398 GB, free: 23.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3501, allocations: 2.922 kB / 0.5398 GB, free: 23.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.3511, allocations: 0.7158 MB / 0.5405 GB, free: 22.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3511, allocations: 0 / 0.5405 GB, free: 22.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000407/0.3516, allocations: 81.86 kB / 0.5406 GB, free: 22.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3516, allocations: 1.156 kB / 0.5406 GB, free: 22.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.3516, allocations: 10.08 kB / 0.5406 GB, free: 22.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.3516, allocations: 2.641 kB / 0.5406 GB, free: 22.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3516, allocations: 2.562 kB / 0.5406 GB, free: 22.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006443/0.3522, allocations: 0.519 MB / 0.5411 GB, free: 22.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.3524, allocations: 62.34 kB / 0.5412 GB, free: 22.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.3524, allocations: 11.81 kB / 0.5412 GB, free: 22.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.3526, allocations: 10.08 kB / 0.5412 GB, free: 22.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.3527, allocations: 23.11 kB / 0.5412 GB, free: 22.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.3527, allocations: 13.27 kB / 0.5412 GB, free: 22.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.353, allocations: 266.7 kB / 0.5415 GB, free: 22.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.353, allocations: 1.219 kB / 0.5415 GB, free: 22.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003711/0.3534, allocations: 86.39 kB / 0.5416 GB, free: 22.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.0008206/0.3542, allocations: 1.067 MB / 0.5426 GB, free: 21.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006434/0.3548, allocations: 270.3 kB / 0.5429 GB, free: 21.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3548, allocations: 0 / 0.5429 GB, free: 21.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.355, allocations: 130.5 kB / 0.543 GB, free: 21.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.3555, allocations: 86.91 kB / 0.5431 GB, free: 21.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.3602, allocations: 3.983 MB / 0.547 GB, free: 19.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.3604, allocations: 228.5 kB / 0.5472 GB, free: 19.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.3606, allocations: 44.25 kB / 0.5472 GB, free: 19.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002151/0.3608, allocations: 154.8 kB / 0.5474 GB, free: 19.14 MB / 414.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3608, allocations: 0.8438 kB / 0.5474 GB, free: 19.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.402, allocations: 9.516 MB / 0.5567 GB, free: 17.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.87, allocations: 18.23 kB / 0.5567 GB, free: 17.1 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.931482755113393] Failed to read output from testmodel.py, exit status != 0: 11.976478012278676 11.989577505 11.852819992 Calling exit ...