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.0008176/0.0008176, allocations: 79.7 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008396/0.0008396, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8264/0.8264, allocations: 158.6 MB / 185.7 MB, free: 3.055 MB / 170.7 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.1774/0.1774, allocations: 36.34 MB / 274.3 MB, free: 10.91 MB / 266.7 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.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: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 414.3 MB, free: 6.117 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.197e-05/1.362e-05, allocations: 2.281 kB / 414.3 MB, free: 6.113 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.002466/0.00248, allocations: 2.173 MB / 416.5 MB, free: 3.926 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008889/0.003368, allocations: 0.6317 MB / 417.1 MB, free: 3.285 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.003479, allocations: 3.938 kB / 417.1 MB, free: 3.281 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.003598, allocations: 35.66 kB / 417.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.003794, allocations: 83.27 kB / 417.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001552/0.003949, allocations: 59.92 kB / 417.3 MB, free: 3.105 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.004187, allocations: 302.5 kB / 417.6 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.004321, allocations: 53.56 kB / 417.7 MB, free: 2.754 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.004493, allocations: 163.5 kB / 417.8 MB, free: 2.594 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.004611, allocations: 83.7 kB / 417.9 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.004636, allocations: 20 kB / 417.9 MB, free: 2.492 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.924e-05/0.004685, allocations: 20 kB / 417.9 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.243e-05/0.004728, allocations: 55.75 kB / 418 MB, free: 2.418 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.62e-05/0.004784, allocations: 83.77 kB / 418.1 MB, free: 2.336 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.005007, allocations: 231.2 kB / 418.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.005009, allocations: 0 / 418.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.00501, allocations: 0 / 418.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.005014, allocations: 0 / 418.3 MB, free: 2.109 MB / 346.7 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.000653/0.005667, allocations: 0.489 MB / 418.8 MB, free: 1.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.005706, allocations: 12.03 kB / 418.8 MB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/0.005749, allocations: 50.73 kB / 418.8 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.924e-05/0.005828, allocations: 32.75 kB / 418.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.006079, allocations: 212.7 kB / 419.1 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.48e-05/0.006144, allocations: 67.97 kB / 419.2 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.006172, allocations: 16.38 kB / 419.2 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.006396, allocations: 175.9 kB / 419.3 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.006408, allocations: 11.94 kB / 419.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.00642, allocations: 4 kB / 419.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.006425, allocations: 4 kB / 419.4 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.006599, allocations: 127.6 kB / 419.5 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006356/0.007235, allocations: 0.5621 MB / 420 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.007488, allocations: 154.3 kB / 420.2 MB, free: 60 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.007593, allocations: 84.75 kB / 420.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.007605, allocations: 0 / 420.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.007621, allocations: 34.56 kB / 420.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 8.92e-07/0.007622, allocations: 0 / 420.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007113/0.008333, allocations: 0.5047 MB / 420.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.008362, allocations: 59.36 kB / 420.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.00852, allocations: 237.9 kB / 421.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.008536, allocations: 29.7 kB / 421.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.008861, allocations: 152.5 kB / 421.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.008897, allocations: 71.41 kB / 421.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-05/0.008945, allocations: 45.66 kB / 421.4 MB, free: 14.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.489e-05/0.00902, allocations: 330.8 kB / 421.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.189e-05/0.009102, allocations: 59.95 kB / 421.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.009208, allocations: 81.62 kB / 421.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.009379, allocations: 149.3 kB / 422 MB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.009381, allocations: 4 kB / 422 MB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002283/0.009609, allocations: 201.3 kB / 422.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.009626, allocations: 10.97 kB / 422.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.009631, allocations: 4.031 kB / 422.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.009644, allocations: 3.938 kB / 422.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.009866, allocations: 79.89 kB / 422.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.009874, allocations: 4 kB / 422.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.677e-05/0.009941, allocations: 11.98 kB / 422.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.009951, allocations: 8 kB / 422.3 MB, free: 13.82 MB / 362.7 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 9.24e-05/0.01004, allocations: 133.7 kB / 422.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.01007, allocations: 27.86 kB / 422.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.776e-05/0.01011, allocations: 30.11 kB / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.01011, allocations: 4 kB / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.01012, allocations: 0 / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.01012, allocations: 0 / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004976/0.01062, allocations: 0.4898 MB / 423 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.01062, allocations: 4 kB / 423 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.01082, allocations: 63.91 kB / 423.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.01082, allocations: 4 kB / 423.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.01083, allocations: 0 / 423.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.01084, allocations: 11.92 kB / 423.1 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01084, allocations: 0 / 423.1 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003492/0.01119, allocations: 347.2 kB / 423.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.01124, allocations: 35.84 kB / 423.5 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.01127, allocations: 3.984 kB / 423.5 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.436e-05/0.01134, allocations: 19.94 kB / 423.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.01138, allocations: 11.97 kB / 423.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.01139, allocations: 8 kB / 423.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001058/0.0115, allocations: 173.2 kB / 423.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.0115, allocations: 0 / 423.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001975/0.0117, allocations: 48 kB / 423.7 MB, free: 12.35 MB / 362.7 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.0004771/0.01217, allocations: 0.8763 MB / 424.6 MB, free: 11.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002169/0.01239, allocations: 139.9 kB / 424.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01239, allocations: 4 kB / 424.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.29e-05/0.01247, allocations: 68.42 kB / 424.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.01274, allocations: 40.77 kB / 424.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.01491, allocations: 2.538 MB / 427.4 MB, free: 8.566 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.47e-05/0.01499, allocations: 138.1 kB / 427.5 MB, free: 8.414 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.818e-05/0.01506, allocations: 25.94 kB / 427.5 MB, free: 8.387 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.826e-05/0.01515, allocations: 76.47 kB / 427.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01515, allocations: 0 / 427.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.03382, allocations: 5.355 MB / 433 MB, free: 2.918 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.253/7.287, allocations: 0 / 433 MB, free: 2.918 MB / 362.7 MB " [Timeout remaining time 653] (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: 9.319294227287173] Failed to read output from testmodel.py, exit status != 0: 7.370214027352631 7.381194587 7.374540217 Calling exit ...