Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.001661/0.001661, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001471/0.001471, allocations: 212 kB / 23.74 MB, free: 4.656 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.387/1.387, allocations: 207.6 MB / 234.5 MB, free: 9.992 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.3034/0.3034, allocations: 49.57 MB / 336.3 MB, free: 4.117 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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.002513/0.002513, allocations: 71.91 kB / 476.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.127, allocations: 62.42 MB / 0.5261 GB, free: 14.35 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.004595/0.1316, allocations: 2.671 MB / 0.5287 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.1333, allocations: 0.7566 MB / 0.5295 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003042/0.1337, allocations: 7.938 kB / 0.5295 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.1339, allocations: 47.39 kB / 0.5295 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000471/0.1343, allocations: 131 kB / 0.5296 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.1347, allocations: 87.83 kB / 0.5297 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000678/0.1353, allocations: 394.2 kB / 0.5301 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.1356, allocations: 73.84 kB / 0.5302 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003324/0.1359, allocations: 163.3 kB / 0.5303 GB, free: 10 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003619/0.1363, allocations: 163.2 kB / 0.5305 GB, free: 9.844 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.588e-05/0.1363, allocations: 24 kB / 0.5305 GB, free: 9.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.885e-05/0.1364, allocations: 28 kB / 0.5305 GB, free: 9.793 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.063e-05/0.1365, allocations: 71.69 kB / 0.5306 GB, free: 9.723 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001999/0.1367, allocations: 171 kB / 0.5308 GB, free: 9.555 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004846/0.1372, allocations: 322.5 kB / 0.5311 GB, free: 9.238 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1372, allocations: 0 / 0.5311 GB, free: 9.238 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1372, allocations: 0 / 0.5311 GB, free: 9.238 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.1372, allocations: 0 / 0.5311 GB, free: 9.238 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001266/0.1385, allocations: 0.6059 MB / 0.5317 GB, free: 8.602 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1385, allocations: 8.031 kB / 0.5317 GB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.474e-05/0.1386, allocations: 58.73 kB / 0.5317 GB, free: 8.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.1388, allocations: 40.7 kB / 0.5318 GB, free: 8.488 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005164/0.1393, allocations: 262.4 kB / 0.532 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.1393, allocations: 16.81 kB / 0.532 GB, free: 8.188 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.018e-05/0.1394, allocations: 36.33 kB / 0.5321 GB, free: 8.152 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004869/0.1399, allocations: 242.8 kB / 0.5323 GB, free: 7.898 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.1399, allocations: 0 / 0.5323 GB, free: 7.898 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.1399, allocations: 8 kB / 0.5323 GB, free: 7.891 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1399, allocations: 4 kB / 0.5323 GB, free: 7.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000423/0.1404, allocations: 185.5 kB / 0.5325 GB, free: 7.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.1418, allocations: 0.7946 MB / 0.5333 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.1421, allocations: 170.7 kB / 0.5334 GB, free: 6.684 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.1424, allocations: 108.7 kB / 0.5335 GB, free: 6.574 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.1424, allocations: 4 kB / 0.5335 GB, free: 6.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.293e-05/0.1424, allocations: 38.56 kB / 0.5336 GB, free: 6.523 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.523e-06/0.1424, allocations: 0 / 0.5336 GB, free: 6.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.001659/0.1441, allocations: 0.6592 MB / 0.5342 GB, free: 5.836 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.1442, allocations: 51.41 kB / 0.5343 GB, free: 5.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003976/0.1446, allocations: 308.5 kB / 0.5346 GB, free: 5.465 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.1446, allocations: 29.7 kB / 0.5346 GB, free: 5.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.1448, allocations: 184.8 kB / 0.5348 GB, free: 5.242 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.1449, allocations: 103.1 kB / 0.5349 GB, free: 5.141 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.145, allocations: 57.64 kB / 0.5349 GB, free: 5.078 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.1452, allocations: 346.8 kB / 0.5352 GB, free: 4.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.1453, allocations: 71.95 kB / 0.5353 GB, free: 4.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.1456, allocations: 114.6 kB / 0.5354 GB, free: 4.539 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003975/0.146, allocations: 192.1 kB / 0.5356 GB, free: 4.344 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.146, allocations: 0 / 0.5356 GB, free: 4.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007575/0.1467, allocations: 323.1 kB / 0.5359 GB, free: 4.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.1467, allocations: 8 kB / 0.5359 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.1467, allocations: 0 / 0.5359 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.1471, allocations: 56.88 kB / 0.536 GB, free: 3.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.1475, allocations: 75.89 kB / 0.536 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.1503, allocations: 2.825 MB / 0.5388 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.1505, allocations: 19.92 kB / 0.5388 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.1506, allocations: 8 kB / 0.5388 GB, free: 0.7969 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000208/0.1508, allocations: 149.8 kB / 0.539 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.557e-05/0.1508, allocations: 27.81 kB / 0.539 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005455/0.1514, allocations: 269.5 kB / 0.5393 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1514, allocations: 4 kB / 0.5393 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.1514, allocations: 0 / 0.5393 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.1514, allocations: 11.92 kB / 0.5393 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2391/0.3905, allocations: 0.6254 MB / 0.5399 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.3905, allocations: 0 / 0.5399 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/0.3909, allocations: 65.75 kB / 0.5399 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/0.3909, allocations: 1.469 kB / 0.5399 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.092e-05/0.3909, allocations: 11.88 kB / 0.54 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3909, allocations: 1 kB / 0.54 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3909, allocations: 4.656 kB / 0.54 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007046/0.3916, allocations: 450.3 kB / 0.5404 GB, free: 22.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.3917, allocations: 43.77 kB / 0.5404 GB, free: 22.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.3918, allocations: 10.42 kB / 0.5404 GB, free: 22.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.392, allocations: 11.38 kB / 0.5405 GB, free: 22.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.392, allocations: 19.52 kB / 0.5405 GB, free: 22.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.392, allocations: 6.609 kB / 0.5405 GB, free: 22.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.3922, allocations: 215.8 kB / 0.5407 GB, free: 22.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3922, allocations: 6.422 kB / 0.5407 GB, free: 22.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003743/0.3926, allocations: 69.44 kB / 0.5408 GB, free: 22.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.0007483/0.3934, allocations: 0.9724 MB / 0.5417 GB, free: 21.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008735/0.3942, allocations: 367.8 kB / 0.5421 GB, free: 21.51 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3942, allocations: 0 / 0.5421 GB, free: 21.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.3945, allocations: 104.8 kB / 0.5422 GB, free: 21.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004994/0.395, allocations: 59.28 kB / 0.5422 GB, free: 21.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004405/0.3994, allocations: 3.389 MB / 0.5455 GB, free: 19.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.3996, allocations: 0.7882 MB / 0.5463 GB, free: 19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.3998, allocations: 36.89 kB / 0.5463 GB, free: 18.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.3999, allocations: 116 kB / 0.5464 GB, free: 18.9 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3999, allocations: 0 / 0.5464 GB, free: 18.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04213/0.4421, allocations: 7.283 MB / 0.5536 GB, free: 17.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.42, allocations: 12.97 kB / 0.5536 GB, free: 17.86 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.223519721068442] Failed to read output from testmodel.py, exit status != 0: 12.53434887016192 12.551461029 12.410618509 Calling exit ...