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.001266/0.001266, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 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.001428/0.001428, allocations: 214 kB / 24.52 MB, free: 3.914 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.359/1.359, allocations: 207.7 MB / 235.4 MB, free: 9.77 MB / 190.1 MB " [Timeout remaining time 178] 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.2901/0.2901, allocations: 49.6 MB / 337.2 MB, free: 3.875 MB / 270.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 63.91 kB / 477.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1175, allocations: 62.43 MB / 0.5269 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003162/0.1206, allocations: 1.981 MB / 0.5288 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.1217, allocations: 0.5698 MB / 0.5294 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.888e-05/0.1218, allocations: 3.938 kB / 0.5294 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.1219, allocations: 23.73 kB / 0.5294 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.1221, allocations: 71.47 kB / 0.5295 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000133/0.1222, allocations: 39.89 kB / 0.5295 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.1225, allocations: 215 kB / 0.5297 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.1226, allocations: 44.77 kB / 0.5298 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.1228, allocations: 79.66 kB / 0.5298 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.1229, allocations: 79.56 kB / 0.5299 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.1229, allocations: 12 kB / 0.5299 GB, free: 11.01 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.078e-05/0.123, allocations: 20 kB / 0.53 GB, free: 10.99 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.123, allocations: 39.77 kB / 0.53 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.361e-05/0.1231, allocations: 67.67 kB / 0.5301 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.1234, allocations: 167.2 kB / 0.5302 GB, free: 10.72 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1234, allocations: 0 / 0.5302 GB, free: 10.72 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1234, allocations: 0 / 0.5302 GB, free: 10.72 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1234, allocations: 4 kB / 0.5302 GB, free: 10.72 MB / 414.1 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.000753/0.1241, allocations: 425.2 kB / 0.5306 GB, free: 10.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.1242, allocations: 8.031 kB / 0.5306 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.557e-05/0.1242, allocations: 8.188 kB / 0.5306 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.405e-05/0.1242, allocations: 42.73 kB / 0.5307 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.657e-05/0.1243, allocations: 28.73 kB / 0.5307 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.1247, allocations: 187.2 kB / 0.5309 GB, free: 9.969 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.1247, allocations: 4.375 kB / 0.5309 GB, free: 9.965 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.1247, allocations: 16.38 kB / 0.5309 GB, free: 9.949 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.125, allocations: 135.2 kB / 0.531 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.125, allocations: 0 / 0.531 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.125, allocations: 8 kB / 0.531 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.125, allocations: 0 / 0.531 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.1252, allocations: 75.94 kB / 0.5311 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007836/0.126, allocations: 491.6 kB / 0.5316 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.1263, allocations: 106.4 kB / 0.5317 GB, free: 9.082 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.1264, allocations: 44.84 kB / 0.5317 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.1264, allocations: 0 / 0.5317 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1264, allocations: 38.5 kB / 0.5318 GB, free: 8.988 MB / 414.1 MB Notification: Performance of pre-optimization done (n=11): time 1.022e-06/0.1264, allocations: 0 / 0.5318 GB, free: 8.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008083/0.1272, allocations: 373 kB / 0.5321 GB, free: 8.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.1273, allocations: 55.34 kB / 0.5322 GB, free: 8.523 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/0.1275, allocations: 221 kB / 0.5324 GB, free: 8.301 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.1275, allocations: 29.7 kB / 0.5324 GB, free: 8.266 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.1276, allocations: 132.3 kB / 0.5325 GB, free: 8.133 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.145e-05/0.1277, allocations: 43.58 kB / 0.5326 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.241e-05/0.1277, allocations: 29.72 kB / 0.5326 GB, free: 8.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1279, allocations: 330.8 kB / 0.5329 GB, free: 7.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.469e-05/0.1279, allocations: 31.98 kB / 0.533 GB, free: 7.691 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.128, allocations: 58.55 kB / 0.533 GB, free: 7.625 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.1282, allocations: 94.5 kB / 0.5331 GB, free: 7.523 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.1282, allocations: 0 / 0.5331 GB, free: 7.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002606/0.1285, allocations: 145.4 kB / 0.5332 GB, free: 7.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.1285, allocations: 4 kB / 0.5332 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1285, allocations: 0 / 0.5332 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1285, allocations: 7.984 kB / 0.5333 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.1287, allocations: 40.05 kB / 0.5333 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.1287, allocations: 0 / 0.5333 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.1288, allocations: 11.92 kB / 0.5333 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.1288, allocations: 4 kB / 0.5333 GB, free: 7.309 MB / 414.1 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 0.00012/0.1289, allocations: 129.8 kB / 0.5334 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.129, allocations: 23.8 kB / 0.5335 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.726e-05/0.129, allocations: 21.7 kB / 0.5335 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.129, allocations: 0 / 0.5335 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.129, allocations: 0 / 0.5335 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.129, allocations: 8 kB / 0.5335 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005709/0.1296, allocations: 398.4 kB / 0.5339 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1296, allocations: 0 / 0.5339 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.1298, allocations: 27.98 kB / 0.5339 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1298, allocations: 0 / 0.5339 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1298, allocations: 7.984 kB / 0.5339 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.1298, allocations: 4 kB / 0.5339 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1298, allocations: 0 / 0.5339 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003756/0.1302, allocations: 263.3 kB / 0.5341 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.613e-05/0.1302, allocations: 23.94 kB / 0.5342 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.1303, allocations: 15.86 kB / 0.5342 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.1304, allocations: 8 kB / 0.5342 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.505e-05/0.1304, allocations: 7.984 kB / 0.5342 GB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.1304, allocations: 4 kB / 0.5342 GB, free: 6.301 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.1306, allocations: 172.4 kB / 0.5344 GB, free: 6.133 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1306, allocations: 0 / 0.5344 GB, free: 6.133 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000268/0.1309, allocations: 32 kB / 0.5344 GB, free: 6.102 MB / 414.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 (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.0006779/0.1316, allocations: 0.7907 MB / 0.5352 GB, free: 5.285 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002175/0.1318, allocations: 71.97 kB / 0.5352 GB, free: 5.215 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1318, allocations: 0 / 0.5352 GB, free: 5.215 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.933e-05/0.1319, allocations: 43.92 kB / 0.5353 GB, free: 5.172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003964/0.1323, allocations: 48.83 kB / 0.5353 GB, free: 5.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.1352, allocations: 2.263 MB / 0.5375 GB, free: 2.773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.1353, allocations: 124.9 kB / 0.5377 GB, free: 2.629 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.045e-05/0.1354, allocations: 17.47 kB / 0.5377 GB, free: 2.613 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.352e-05/0.1355, allocations: 51.42 kB / 0.5377 GB, free: 2.562 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1355, allocations: 0 / 0.5377 GB, free: 2.562 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2234/0.3589, allocations: 4.067 MB / 0.5417 GB, free: 22.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.72, allocations: 12.92 kB / 0.5417 GB, free: 22.41 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.480572395026684] Failed to read output from testmodel.py, exit status != 0: 11.880719868000597 11.894586132 11.768509624 Calling exit ...