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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 120.8 kB / 17.74 MB, free: 5.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002027/0.002027, allocations: 186.9 kB / 20.68 MB, free: 2.383 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.426/1.426, allocations: 205.1 MB / 228.6 MB, free: 4.426 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5108/0.5108, allocations: 48.83 MB / 326.8 MB, free: 3.938 MB / 254.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002221/0.002222, allocations: 71.8 kB / 458.7 MB, free: 116 kB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2418, allocations: 59.15 MB / 0.5057 GB, free: 16.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003157/0.245, allocations: 2.289 MB / 0.508 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.2463, allocations: 0.6592 MB / 0.5086 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.2465, allocations: 4 kB / 0.5086 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.2467, allocations: 35.66 kB / 0.5087 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003111/0.247, allocations: 83.27 kB / 0.5087 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.2472, allocations: 59.92 kB / 0.5088 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003525/0.2476, allocations: 290.7 kB / 0.5091 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.2478, allocations: 73.31 kB / 0.5091 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.248, allocations: 107.6 kB / 0.5092 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.2482, allocations: 119.4 kB / 0.5094 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.505e-05/0.2483, allocations: 20 kB / 0.5094 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.492e-05/0.2484, allocations: 20 kB / 0.5094 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.37e-05/0.2484, allocations: 51.7 kB / 0.5095 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.2486, allocations: 127.3 kB / 0.5096 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000323/0.2489, allocations: 226 kB / 0.5098 GB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2489, allocations: 4 kB / 0.5098 GB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.2489, allocations: 0 / 0.5098 GB, free: 12.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.249, allocations: 7.938 kB / 0.5098 GB, free: 12.63 MB / 382.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.001038/0.25, allocations: 0.5682 MB / 0.5104 GB, free: 12.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.2501, allocations: 15.89 kB / 0.5104 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.889e-05/0.2501, allocations: 46.73 kB / 0.5104 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.2503, allocations: 28.8 kB / 0.5104 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004/0.2507, allocations: 274.9 kB / 0.5107 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.861e-05/0.2508, allocations: 38.27 kB / 0.5107 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-05/0.2508, allocations: 24.12 kB / 0.5108 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004318/0.2513, allocations: 179.1 kB / 0.5109 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2513, allocations: 3.938 kB / 0.5109 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.2513, allocations: 8 kB / 0.5109 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.2514, allocations: 4 kB / 0.5109 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/0.2518, allocations: 119.9 kB / 0.5111 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.2529, allocations: 0.6735 MB / 0.5117 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.2533, allocations: 150.5 kB / 0.5119 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.2536, allocations: 84.77 kB / 0.5119 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.2536, allocations: 4 kB / 0.5119 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.2536, allocations: 42.5 kB / 0.512 GB, free: 10.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 2.876e-06/0.2537, allocations: 3.984 kB / 0.512 GB, free: 10.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001429/0.2551, allocations: 0.5838 MB / 0.5126 GB, free: 9.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/0.2551, allocations: 55.41 kB / 0.5126 GB, free: 9.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.2554, allocations: 233 kB / 0.5128 GB, free: 9.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.2554, allocations: 33.64 kB / 0.5129 GB, free: 9.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.2555, allocations: 148.5 kB / 0.513 GB, free: 9.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.407e-05/0.2556, allocations: 75.38 kB / 0.5131 GB, free: 8.984 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.798e-05/0.2557, allocations: 33.72 kB / 0.5131 GB, free: 8.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.859e-05/0.2558, allocations: 338.8 kB / 0.5134 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.256, allocations: 59.97 kB / 0.5135 GB, free: 8.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.2562, allocations: 86.48 kB / 0.5136 GB, free: 8.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.2566, allocations: 141.5 kB / 0.5137 GB, free: 8.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2566, allocations: 0 / 0.5137 GB, free: 8.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005059/0.2571, allocations: 205.4 kB / 0.5139 GB, free: 8.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2572, allocations: 4 kB / 0.5139 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.2572, allocations: 0 / 0.5139 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2572, allocations: 4 kB / 0.5139 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/0.2579, allocations: 79.89 kB / 0.514 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.2579, allocations: 0 / 0.514 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/0.2581, allocations: 16.02 kB / 0.514 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.2581, allocations: 8 kB / 0.514 GB, free: 7.996 MB / 382.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.0001202/0.2583, allocations: 133.7 kB / 0.5141 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.764e-05/0.2583, allocations: 19.86 kB / 0.5142 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.889e-05/0.2584, allocations: 34.17 kB / 0.5142 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.2584, allocations: 0 / 0.5142 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2585, allocations: 0 / 0.5142 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2585, allocations: 4 kB / 0.5142 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009823/0.2595, allocations: 0.5463 MB / 0.5147 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2595, allocations: 0 / 0.5147 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005129/0.26, allocations: 59.95 kB / 0.5148 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.26, allocations: 0 / 0.5148 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.26, allocations: 8 kB / 0.5148 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.2601, allocations: 3.938 kB / 0.5148 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2601, allocations: 0 / 0.5148 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006658/0.2607, allocations: 359.5 kB / 0.5151 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.312e-05/0.2608, allocations: 112.9 kB / 0.5153 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.2609, allocations: 4 kB / 0.5153 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.2611, allocations: 19.92 kB / 0.5153 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.984e-05/0.2612, allocations: 7.984 kB / 0.5153 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.2612, allocations: 11.94 kB / 0.5153 GB, free: 6.586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.2615, allocations: 176.5 kB / 0.5155 GB, free: 6.414 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2615, allocations: 0 / 0.5155 GB, free: 6.414 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004764/0.262, allocations: 48 kB / 0.5155 GB, free: 6.367 MB / 382.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.0008432/0.2628, allocations: 0.8763 MB / 0.5164 GB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004652/0.2633, allocations: 147.9 kB / 0.5165 GB, free: 5.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2633, allocations: 0 / 0.5165 GB, free: 5.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002091/0.2635, allocations: 75.89 kB / 0.5166 GB, free: 5.246 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.2642, allocations: 37.45 kB / 0.5166 GB, free: 5.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.2679, allocations: 2.625 MB / 0.5192 GB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/0.268, allocations: 0.7478 MB / 0.5199 GB, free: 1.727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.2682, allocations: 25.94 kB / 0.5199 GB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.2683, allocations: 75.41 kB / 0.52 GB, free: 1.625 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2683, allocations: 0 / 0.52 GB, free: 1.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.3045, allocations: 4.523 MB / 0.5244 GB, free: 13.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/8.462, allocations: 3.984 kB / 0.5244 GB, free: 13.05 MB / 398.1 MB " [Timeout remaining time 651] (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.394468026934192] Failed to read output from testmodel.py, exit status != 0: 8.536267174989916 8.559321166 8.305867631 Calling exit ...