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.001289/0.001289, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001402/0.001402, allocations: 210.5 kB / 23.73 MB, free: 4.387 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.378/1.378, allocations: 207.7 MB / 234.6 MB, free: 9.793 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.2921/0.2921, allocations: 49.6 MB / 336.4 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="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: 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.00222/0.00222, allocations: 75.89 kB / 476.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1181, allocations: 62.43 MB / 0.5261 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003386/0.1215, allocations: 1.97 MB / 0.5281 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.1225, allocations: 0.5854 MB / 0.5286 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.871e-05/0.1226, allocations: 3.938 kB / 0.5286 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.1227, allocations: 23.73 kB / 0.5287 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.1229, allocations: 67.42 kB / 0.5287 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001393/0.1231, allocations: 39.95 kB / 0.5288 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000286/0.1234, allocations: 215 kB / 0.529 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.1235, allocations: 36.78 kB / 0.529 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.1237, allocations: 87.58 kB / 0.5291 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.1238, allocations: 71.62 kB / 0.5292 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.1238, allocations: 12 kB / 0.5292 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.393e-05/0.1239, allocations: 20 kB / 0.5292 GB, free: 11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.564e-05/0.1239, allocations: 31.84 kB / 0.5292 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.785e-05/0.124, allocations: 79.53 kB / 0.5293 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.1242, allocations: 159.3 kB / 0.5294 GB, free: 10.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1242, allocations: 0 / 0.5294 GB, free: 10.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1242, allocations: 0 / 0.5294 GB, free: 10.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1243, allocations: 0 / 0.5294 GB, free: 10.73 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.0007622/0.125, allocations: 437.1 kB / 0.5299 GB, free: 10.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.125, allocations: 8.031 kB / 0.5299 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.053e-05/0.1251, allocations: 42.75 kB / 0.5299 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.149e-05/0.1252, allocations: 24.8 kB / 0.5299 GB, free: 10.19 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.1255, allocations: 195.1 kB / 0.5301 GB, free: 9.973 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1255, allocations: 4.375 kB / 0.5301 GB, free: 9.969 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.1256, allocations: 16.38 kB / 0.5301 GB, free: 9.953 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.1258, allocations: 135.4 kB / 0.5303 GB, free: 9.809 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1258, allocations: 4 kB / 0.5303 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.1258, allocations: 0 / 0.5303 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.1258, allocations: 7.938 kB / 0.5303 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.126, allocations: 75.94 kB / 0.5303 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.1267, allocations: 479.6 kB / 0.5308 GB, free: 9.207 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.127, allocations: 106.5 kB / 0.5309 GB, free: 9.094 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.177e-05/0.1271, allocations: 44.84 kB / 0.5309 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.1271, allocations: 0 / 0.5309 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.1272, allocations: 42.48 kB / 0.531 GB, free: 8.996 MB / 414.1 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.1272, allocations: 0 / 0.531 GB, free: 8.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007735/0.1279, allocations: 369.7 kB / 0.5313 GB, free: 8.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.128, allocations: 55.34 kB / 0.5314 GB, free: 8.535 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.1282, allocations: 224.9 kB / 0.5316 GB, free: 8.309 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1282, allocations: 33.7 kB / 0.5316 GB, free: 8.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.798e-05/0.1283, allocations: 132.3 kB / 0.5318 GB, free: 8.137 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.1284, allocations: 47.56 kB / 0.5318 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.1284, allocations: 29.72 kB / 0.5318 GB, free: 8.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1286, allocations: 330.8 kB / 0.5322 GB, free: 7.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.363e-05/0.1286, allocations: 31.98 kB / 0.5322 GB, free: 7.691 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.987e-05/0.1287, allocations: 58.55 kB / 0.5322 GB, free: 7.625 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.1289, allocations: 90.5 kB / 0.5323 GB, free: 7.527 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.1289, allocations: 4 kB / 0.5323 GB, free: 7.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002537/0.1291, allocations: 145.4 kB / 0.5325 GB, free: 7.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1292, allocations: 4 kB / 0.5325 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1292, allocations: 4 kB / 0.5325 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1292, allocations: 0 / 0.5325 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.1293, allocations: 39.97 kB / 0.5325 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.1293, allocations: 0 / 0.5325 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.536e-05/0.1294, allocations: 4.062 kB / 0.5325 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.1294, allocations: 8 kB / 0.5325 GB, free: 7.316 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.0001097/0.1296, allocations: 129.8 kB / 0.5327 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.1296, allocations: 23.8 kB / 0.5327 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.214e-05/0.1296, allocations: 21.7 kB / 0.5327 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1297, allocations: 0 / 0.5327 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1297, allocations: 4 kB / 0.5327 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1297, allocations: 0 / 0.5327 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/0.1302, allocations: 405.5 kB / 0.5331 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1302, allocations: 3.938 kB / 0.5331 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.1303, allocations: 31.98 kB / 0.5331 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1303, allocations: 0 / 0.5331 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.1304, allocations: 4 kB / 0.5331 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1304, allocations: 4 kB / 0.5331 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1304, allocations: 3.938 kB / 0.5331 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.1307, allocations: 263.5 kB / 0.5334 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.941e-05/0.1308, allocations: 19.94 kB / 0.5334 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.1308, allocations: 4 kB / 0.5334 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.1309, allocations: 7.938 kB / 0.5334 GB, free: 6.324 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.131, allocations: 16.06 kB / 0.5334 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.131, allocations: 8 kB / 0.5334 GB, free: 6.301 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.1312, allocations: 168.5 kB / 0.5336 GB, free: 6.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1312, allocations: 0 / 0.5336 GB, free: 6.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.1314, allocations: 35.94 kB / 0.5336 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.0006518/0.1321, allocations: 0.7864 MB / 0.5344 GB, free: 5.289 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000216/0.1323, allocations: 79.95 kB / 0.5345 GB, free: 5.211 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1323, allocations: 8.125 kB / 0.5345 GB, free: 5.203 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.358e-05/0.1324, allocations: 43.91 kB / 0.5345 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.1328, allocations: 36.61 kB / 0.5346 GB, free: 5.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.1358, allocations: 2.264 MB / 0.5368 GB, free: 2.773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.1359, allocations: 120.9 kB / 0.5369 GB, free: 2.633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.828e-05/0.136, allocations: 13.48 kB / 0.5369 GB, free: 2.621 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.1361, allocations: 47.42 kB / 0.5369 GB, free: 2.574 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1361, allocations: 0 / 0.5369 GB, free: 2.574 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2327/0.3688, allocations: 4.402 MB / 0.5412 GB, free: 22.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.3, allocations: 12.42 kB / 0.5413 GB, free: 22.51 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.9785299571231] Failed to read output from testmodel.py, exit status != 0: 11.407515091821551 11.423954246 11.296580901 Calling exit ...