Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.002045/0.002046, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.002379/0.002379, allocations: 186.9 kB / 20.68 MB, free: 2.402 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.44/1.44, allocations: 205.1 MB / 228.6 MB, free: 4.457 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.4059/0.4059, allocations: 48.83 MB / 326.8 MB, free: 3.914 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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.00219/0.002191, allocations: 75.8 kB / 458.7 MB, free: 108 kB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2467, allocations: 59.17 MB / 0.5058 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.002552/0.2493, allocations: 2.16 MB / 0.5079 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008385/0.2502, allocations: 0.6436 MB / 0.5085 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.2503, allocations: 0 / 0.5085 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.2504, allocations: 31.66 kB / 0.5085 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.2507, allocations: 71.41 kB / 0.5086 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001355/0.2508, allocations: 51.88 kB / 0.5086 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.251, allocations: 246.9 kB / 0.5089 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.2511, allocations: 56.36 kB / 0.5089 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.2513, allocations: 103.5 kB / 0.509 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.2514, allocations: 103.5 kB / 0.5091 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.2514, allocations: 16 kB / 0.5091 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.2515, allocations: 16 kB / 0.5092 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.105e-05/0.2515, allocations: 39.84 kB / 0.5092 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.654e-05/0.2516, allocations: 111.3 kB / 0.5093 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.2518, allocations: 197.6 kB / 0.5095 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.859e-05/0.2519, allocations: 0 / 0.5095 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2519, allocations: 0 / 0.5095 GB, free: 13.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2519, allocations: 0 / 0.5095 GB, free: 13.07 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006708/0.2525, allocations: 0.5411 MB / 0.51 GB, free: 12.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2526, allocations: 11.89 kB / 0.51 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.086e-05/0.2526, allocations: 46.73 kB / 0.5101 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.021e-05/0.2527, allocations: 28.73 kB / 0.5101 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.253, allocations: 262.9 kB / 0.5104 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.253, allocations: 12.38 kB / 0.5104 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.2531, allocations: 16.36 kB / 0.5104 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.2533, allocations: 155.4 kB / 0.5105 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.2533, allocations: 3.953 kB / 0.5105 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.2533, allocations: 11.98 kB / 0.5105 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2534, allocations: 0 / 0.5105 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.2536, allocations: 95.94 kB / 0.5106 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006404/0.2542, allocations: 0.6114 MB / 0.5112 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.2544, allocations: 122.6 kB / 0.5114 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.2546, allocations: 72.77 kB / 0.5114 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.2546, allocations: 0 / 0.5114 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.296e-05/0.2546, allocations: 46.5 kB / 0.5115 GB, free: 10.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.052e-06/0.2546, allocations: 0 / 0.5115 GB, free: 10.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008741/0.2555, allocations: 0.5509 MB / 0.512 GB, free: 10.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.9e-05/0.2555, allocations: 55.41 kB / 0.5121 GB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.2557, allocations: 229 kB / 0.5123 GB, free: 9.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.2557, allocations: 33.69 kB / 0.5123 GB, free: 9.926 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.069e-05/0.2558, allocations: 136.5 kB / 0.5124 GB, free: 9.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.2558, allocations: 71.34 kB / 0.5125 GB, free: 9.719 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.2559, allocations: 37.72 kB / 0.5125 GB, free: 9.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.653e-05/0.2559, allocations: 330.8 kB / 0.5129 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.256, allocations: 51.97 kB / 0.5129 GB, free: 9.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.2561, allocations: 82.53 kB / 0.513 GB, free: 9.203 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0009848/0.2571, allocations: 421 kB / 0.5134 GB, free: 8.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2571, allocations: 4 kB / 0.5134 GB, free: 8.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002816/0.2574, allocations: 197.3 kB / 0.5136 GB, free: 8.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.2575, allocations: 4 kB / 0.5136 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2575, allocations: 0 / 0.5136 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2575, allocations: 4 kB / 0.5136 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.2577, allocations: 59.91 kB / 0.5136 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.2577, allocations: 0 / 0.5136 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.2579, allocations: 15.92 kB / 0.5137 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.2579, allocations: 8 kB / 0.5137 GB, free: 8.473 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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 8.675e-05/0.258, allocations: 133.8 kB / 0.5138 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.258, allocations: 23.8 kB / 0.5138 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.2581, allocations: 30.17 kB / 0.5138 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2581, allocations: 0 / 0.5138 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2581, allocations: 0 / 0.5138 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2581, allocations: 0 / 0.5138 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005547/0.2587, allocations: 0.5217 MB / 0.5144 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2587, allocations: 7.938 kB / 0.5144 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.2589, allocations: 47.97 kB / 0.5144 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2589, allocations: 0 / 0.5144 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.259, allocations: 4.047 kB / 0.5144 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.259, allocations: 4 kB / 0.5144 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.259, allocations: 3.984 kB / 0.5144 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000392/0.2594, allocations: 344.2 kB / 0.5147 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.695e-05/0.2594, allocations: 109 kB / 0.5149 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.2595, allocations: 4 kB / 0.5149 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2596, allocations: 4 kB / 0.5149 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.2597, allocations: 15.98 kB / 0.5149 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.2597, allocations: 7.938 kB / 0.5149 GB, free: 7.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.2598, allocations: 164.5 kB / 0.515 GB, free: 6.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2598, allocations: 0 / 0.515 GB, free: 6.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002701/0.2601, allocations: 48 kB / 0.5151 GB, free: 6.918 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * 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 (18): * Single equations (assignments): 18 * 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.0005024/0.2606, allocations: 0.8571 MB / 0.5159 GB, free: 6.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002828/0.2609, allocations: 136 kB / 0.5161 GB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2609, allocations: 0 / 0.5161 GB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.261, allocations: 67.91 kB / 0.5161 GB, free: 5.836 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.2614, allocations: 49.73 kB / 0.5162 GB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.2636, allocations: 2.446 MB / 0.5186 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.2637, allocations: 0.7436 MB / 0.5193 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.171e-05/0.2638, allocations: 25.52 kB / 0.5193 GB, free: 2.457 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.264, allocations: 63.42 kB / 0.5194 GB, free: 2.395 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.264, allocations: 0 / 0.5194 GB, free: 2.395 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.2916, allocations: 4.317 MB / 0.5236 GB, free: 14.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.227/8.519, allocations: 7.875 kB / 0.5236 GB, free: 14.02 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.28230840107426] Failed to read output from testmodel.py, exit status != 0: 8.589343138970435 8.612746971 8.356785904 Calling exit ...