Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.0008294/0.0008294, 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.0009518/0.0009518, allocations: 170.3 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.8166/0.8166, allocations: 158.6 MB / 185.7 MB, free: 3.043 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.177/0.177, 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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 414.3 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.74e-05, allocations: 6.219 kB / 414.3 MB, free: 6.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002192/0.002209, allocations: 1.986 MB / 416.3 MB, free: 4.102 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009343/0.003144, allocations: 0.5733 MB / 416.9 MB, free: 3.52 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.159e-05/0.003235, allocations: 4 kB / 416.9 MB, free: 3.516 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.003341, allocations: 19.73 kB / 416.9 MB, free: 3.496 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.003517, allocations: 75.41 kB / 417 MB, free: 3.422 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001273/0.003644, allocations: 43.88 kB / 417 MB, free: 3.379 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.003839, allocations: 218.9 kB / 417.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.00395, allocations: 32.56 kB / 417.3 MB, free: 3.129 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.004085, allocations: 119.6 kB / 417.4 MB, free: 3.012 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.359e-05/0.004179, allocations: 55.81 kB / 417.4 MB, free: 2.957 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.004201, allocations: 12 kB / 417.4 MB, free: 2.945 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.901e-05/0.00425, allocations: 16 kB / 417.5 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.76e-05/0.004278, allocations: 39.77 kB / 417.5 MB, free: 2.891 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.881e-05/0.004327, allocations: 55.84 kB / 417.6 MB, free: 2.836 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.004524, allocations: 167.4 kB / 417.7 MB, free: 2.672 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.004526, allocations: 0 / 417.7 MB, free: 2.672 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.004527, allocations: 4 kB / 417.7 MB, free: 2.668 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.004532, allocations: 0 / 417.7 MB, free: 2.668 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005592/0.005091, allocations: 421.3 kB / 418.1 MB, free: 2.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.005131, allocations: 8.031 kB / 418.1 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.819e-05/0.005169, allocations: 46.73 kB / 418.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.191e-05/0.005241, allocations: 20.8 kB / 418.2 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002413/0.005483, allocations: 186.4 kB / 418.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.005496, allocations: 8.375 kB / 418.4 MB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.005523, allocations: 16.36 kB / 418.4 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.00571, allocations: 131.8 kB / 418.5 MB, free: 1.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.005723, allocations: 4.141 kB / 418.5 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.005738, allocations: 12.12 kB / 418.6 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.005743, allocations: 3.938 kB / 418.6 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.005866, allocations: 79.89 kB / 418.6 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005273/0.006393, allocations: 483.6 kB / 419.1 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.006593, allocations: 102.5 kB / 419.2 MB, free: 1.043 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.176e-05/0.006645, allocations: 40.84 kB / 419.3 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.006656, allocations: 7.938 kB / 419.3 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.006672, allocations: 30.56 kB / 419.3 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.006674, allocations: 0 / 419.3 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005324/0.007206, allocations: 372.9 kB / 419.7 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.642e-05/0.007232, allocations: 51.41 kB / 419.7 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.007377, allocations: 225.8 kB / 419.9 MB, free: 264 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.007387, allocations: 29.7 kB / 420 MB, free: 228 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.934e-05/0.007447, allocations: 124.4 kB / 420.1 MB, free: 100 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.007471, allocations: 51.56 kB / 420.1 MB, free: 48 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.007504, allocations: 33.7 kB / 420.2 MB, free: 8 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.87e-05/0.007593, allocations: 326.8 kB / 420.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.914e-05/0.007642, allocations: 31.98 kB / 420.5 MB, free: 15.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.369e-05/0.007696, allocations: 58.48 kB / 420.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.007801, allocations: 102.5 kB / 420.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.007802, allocations: 3.938 kB / 420.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001517/0.007954, allocations: 145.5 kB / 420.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.007967, allocations: 6.5 kB / 420.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.007973, allocations: 0 / 420.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.007986, allocations: 3.938 kB / 420.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.532e-05/0.008071, allocations: 39.98 kB / 420.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.008077, allocations: 4 kB / 420.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.344e-05/0.00813, allocations: 8 kB / 420.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.008135, allocations: 0 / 420.9 MB, free: 15.26 MB / 362.7 MB 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 (16): * Single equations (assignments): 16 * 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 7.218e-05/0.008208, allocations: 129.8 kB / 421 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.101e-05/0.008229, allocations: 15.91 kB / 421 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.476e-05/0.008263, allocations: 25.78 kB / 421 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.008266, allocations: 3.938 kB / 421 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.008272, allocations: 4 kB / 421 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.008275, allocations: 7.984 kB / 421.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003462/0.008621, allocations: 390.4 kB / 421.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.008623, allocations: 3.938 kB / 421.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.783e-05/0.00871, allocations: 31.98 kB / 421.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.008713, allocations: 0 / 421.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.008721, allocations: 0 / 421.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.008722, allocations: 0 / 421.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.008723, allocations: 0 / 421.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/0.008949, allocations: 267.3 kB / 421.7 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.878e-05/0.008988, allocations: 31.98 kB / 421.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.009004, allocations: 0 / 421.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.862e-05/0.009063, allocations: 11.98 kB / 421.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.00909, allocations: 11.92 kB / 421.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.009094, allocations: 0 / 421.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.952e-05/0.009194, allocations: 173.2 kB / 422 MB, free: 14.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009194, allocations: 0 / 422 MB, free: 14.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001667/0.009361, allocations: 35.94 kB / 422 MB, free: 14.07 MB / 362.7 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 (12): * Single equations (assignments): 12 * 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.0003867/0.009747, allocations: 0.7865 MB / 422.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.009891, allocations: 91.88 kB / 422.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009893, allocations: 0 / 422.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-05/0.009941, allocations: 39.92 kB / 422.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.01019, allocations: 37.08 kB / 422.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.01205, allocations: 2.208 MB / 425.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.995e-05/0.01212, allocations: 120.9 kB / 425.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.092e-05/0.01217, allocations: 17.47 kB / 425.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.832e-05/0.01224, allocations: 56.47 kB / 425.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01224, allocations: 0 / 425.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0175/0.02974, allocations: 4.55 MB / 429.9 MB, free: 5.988 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.973/7.002, allocations: 4.062 kB / 429.9 MB, free: 5.984 MB / 362.7 MB " [Timeout remaining time 653] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.835241050459445] Failed to read output from testmodel.py, exit status != 0: 7.086547515355051 7.095916713 7.089359456 Calling exit ...