Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.001133/0.001133, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.000856/0.000856, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8078/0.8078, allocations: 158.6 MB / 185.7 MB, free: 3.02 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.1773/0.1773, allocations: 36.35 MB / 274.3 MB, free: 10.9 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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 414.3 MB, free: 6.102 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.88e-05/2.029e-05, allocations: 2.281 kB / 414.3 MB, free: 6.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002504/0.002524, allocations: 2.153 MB / 416.5 MB, free: 3.93 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.003561, allocations: 0.6355 MB / 417.1 MB, free: 3.285 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.003671, allocations: 0 / 417.1 MB, free: 3.285 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.003788, allocations: 31.66 kB / 417.1 MB, free: 3.254 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.003997, allocations: 91.25 kB / 417.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.004163, allocations: 71.73 kB / 417.3 MB, free: 3.094 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.004406, allocations: 282.6 kB / 417.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.004549, allocations: 40.91 kB / 417.6 MB, free: 2.773 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004306/0.00498, allocations: 163.5 kB / 417.8 MB, free: 2.613 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001246/0.005104, allocations: 83.72 kB / 417.9 MB, free: 2.531 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.005135, allocations: 16 kB / 417.9 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.444e-05/0.005189, allocations: 20 kB / 417.9 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.51e-05/0.005224, allocations: 47.77 kB / 417.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.005286, allocations: 83.77 kB / 418 MB, free: 2.367 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.005532, allocations: 223.2 kB / 418.2 MB, free: 2.148 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.005535, allocations: 0 / 418.2 MB, free: 2.148 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.005536, allocations: 0 / 418.2 MB, free: 2.148 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.005542, allocations: 0 / 418.2 MB, free: 2.148 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006713/0.006213, allocations: 492.9 kB / 418.7 MB, free: 1.637 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.006253, allocations: 12.03 kB / 418.7 MB, free: 1.625 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.006296, allocations: 54.67 kB / 418.8 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.107e-05/0.006378, allocations: 32.75 kB / 418.8 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.006657, allocations: 204.8 kB / 419 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.00667, allocations: 12.38 kB / 419 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.006702, allocations: 24.33 kB / 419.1 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.006933, allocations: 171.8 kB / 419.2 MB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.006944, allocations: 192 / 419.2 MB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.006958, allocations: 12.12 kB / 419.2 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.006965, allocations: 4 kB / 419.2 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.007149, allocations: 119.9 kB / 419.4 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006999/0.007848, allocations: 0.5463 MB / 419.9 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.008049, allocations: 130.4 kB / 420 MB, free: 228 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.331e-05/0.008142, allocations: 72.83 kB / 420.1 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.008163, allocations: 0 / 420.1 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.008189, allocations: 46.44 kB / 420.1 MB, free: 96 kB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.102e-06/0.00819, allocations: 0 / 420.1 MB, free: 96 kB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.000814/0.009004, allocations: 487.8 kB / 420.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.009038, allocations: 59.39 kB / 420.7 MB, free: 15.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.009213, allocations: 229.9 kB / 420.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.009228, allocations: 33.7 kB / 420.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.256e-05/0.0093, allocations: 144.6 kB / 421.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.009337, allocations: 63.44 kB / 421.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.009387, allocations: 45.66 kB / 421.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.555e-05/0.009473, allocations: 330.8 kB / 421.5 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.745e-05/0.00955, allocations: 51.97 kB / 421.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.533e-05/0.009636, allocations: 81.41 kB / 421.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.009799, allocations: 129.6 kB / 421.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.0098, allocations: 0 / 421.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002374/0.01004, allocations: 201.3 kB / 422 MB, free: 14.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.01005, allocations: 11.94 kB / 422 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01006, allocations: 0 / 422 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.01007, allocations: 0 / 422 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.01031, allocations: 67.89 kB / 422 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008062/0.01112, allocations: 1.341 MB / 423.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.228e-05/0.0112, allocations: 7.984 kB / 423.4 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.01121, allocations: 8 kB / 423.4 MB, free: 12.62 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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 9.578e-05/0.01131, allocations: 134.3 kB / 423.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.01134, allocations: 28.05 kB / 423.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002155/0.01155, allocations: 179.7 kB / 423.7 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.01156, allocations: 4 kB / 423.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.01156, allocations: 3.938 kB / 423.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01156, allocations: 0 / 423.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004965/0.01206, allocations: 497.4 kB / 424.2 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01206, allocations: 4 kB / 424.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.01219, allocations: 47.91 kB / 424.3 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.0122, allocations: 7.938 kB / 424.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.01221, allocations: 4 kB / 424.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.01221, allocations: 0 / 424.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.01221, allocations: 4 kB / 424.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003012/0.01251, allocations: 339.2 kB / 424.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.01256, allocations: 35.88 kB / 424.7 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.01258, allocations: 7.938 kB / 424.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.289e-05/0.01265, allocations: 4 kB / 424.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.0127, allocations: 19.97 kB / 424.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.0127, allocations: 4 kB / 424.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000367/0.01307, allocations: 169.2 kB / 424.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01307, allocations: 3.938 kB / 424.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000201/0.01327, allocations: 48 kB / 424.9 MB, free: 11.04 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: 0 () * 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.0004904/0.01376, allocations: 0.8683 MB / 425.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003678/0.01413, allocations: 163.8 kB / 425.9 MB, free: 9.977 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.01413, allocations: 4 kB / 425.9 MB, free: 9.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.234e-05/0.01421, allocations: 68.42 kB / 426 MB, free: 9.906 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.01448, allocations: 37 kB / 426 MB, free: 9.871 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.01667, allocations: 2.495 MB / 428.5 MB, free: 7.285 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.237e-05/0.01676, allocations: 147.1 kB / 428.7 MB, free: 7.121 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.085e-05/0.01684, allocations: 21.62 kB / 428.7 MB, free: 7.102 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.803e-05/0.01694, allocations: 80.48 kB / 428.8 MB, free: 7.023 MB / 362.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01694, allocations: 0 / 428.8 MB, free: 7.023 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.03731, allocations: 5.829 MB / 434.6 MB, free: 1.141 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/7.235, allocations: 3.906 kB / 434.6 MB, free: 1.137 MB / 362.7 MB " [Timeout remaining time 653] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.053778910078108] Failed to read output from testmodel.py, exit status != 0: 7.319712922908366 7.329823211 7.322410124 Calling exit ...