Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.001277/0.001277, 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.001575/0.001575, allocations: 210.6 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.573/1.573, 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.4031/0.4031, allocations: 49.61 MB / 336.4 MB, free: 3.879 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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.002244/0.002244, allocations: 71.89 kB / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1178, allocations: 62.42 MB / 0.5261 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004319/0.1221, allocations: 2.745 MB / 0.5288 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.1236, allocations: 0.7762 MB / 0.5296 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.1237, allocations: 7.938 kB / 0.5296 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.1239, allocations: 55.33 kB / 0.5296 GB, free: 10.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003472/0.1242, allocations: 150.8 kB / 0.5298 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.1245, allocations: 103.9 kB / 0.5299 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005515/0.125, allocations: 0.4943 MB / 0.5304 GB, free: 9.785 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.1253, allocations: 92.67 kB / 0.5305 GB, free: 9.691 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/0.1255, allocations: 203.1 kB / 0.5306 GB, free: 9.492 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.1258, allocations: 179 kB / 0.5308 GB, free: 9.316 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.834e-05/0.1258, allocations: 32 kB / 0.5308 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1259, allocations: 36 kB / 0.5309 GB, free: 9.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.611e-05/0.126, allocations: 95.55 kB / 0.531 GB, free: 9.156 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.1262, allocations: 167.1 kB / 0.5311 GB, free: 8.992 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004805/0.1267, allocations: 418 kB / 0.5315 GB, free: 8.582 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1267, allocations: 8 kB / 0.5315 GB, free: 8.574 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1267, allocations: 0 / 0.5315 GB, free: 8.574 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.1267, allocations: 0 / 0.5315 GB, free: 8.574 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001316/0.128, allocations: 0.6877 MB / 0.5322 GB, free: 7.855 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.128, allocations: 8.031 kB / 0.5322 GB, free: 7.848 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.337e-05/0.1281, allocations: 66.72 kB / 0.5323 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.1283, allocations: 56.61 kB / 0.5323 GB, free: 7.719 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.1288, allocations: 292.6 kB / 0.5326 GB, free: 7.406 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.1288, allocations: 25.03 kB / 0.5326 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.021e-05/0.1289, allocations: 52 kB / 0.5327 GB, free: 7.332 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004996/0.1294, allocations: 289.9 kB / 0.533 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.1294, allocations: 0 / 0.533 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.966e-05/0.1294, allocations: 16 kB / 0.533 GB, free: 7.016 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1294, allocations: 11.98 kB / 0.533 GB, free: 7.004 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004048/0.1298, allocations: 206.4 kB / 0.5332 GB, free: 6.805 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.1315, allocations: 0.9791 MB / 0.5341 GB, free: 5.766 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.1319, allocations: 232.6 kB / 0.5344 GB, free: 5.531 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.1321, allocations: 112.8 kB / 0.5345 GB, free: 5.418 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.1321, allocations: 4 kB / 0.5345 GB, free: 5.414 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1322, allocations: 30.56 kB / 0.5345 GB, free: 5.375 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/0.1322, allocations: 0 / 0.5345 GB, free: 5.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.001744/0.1339, allocations: 0.7931 MB / 0.5353 GB, free: 4.547 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.134, allocations: 63.39 kB / 0.5353 GB, free: 4.473 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.1344, allocations: 357.6 kB / 0.5357 GB, free: 4.113 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.1344, allocations: 33.7 kB / 0.5357 GB, free: 4.074 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.1346, allocations: 216.6 kB / 0.5359 GB, free: 3.859 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.1347, allocations: 126.9 kB / 0.536 GB, free: 3.734 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1348, allocations: 74.02 kB / 0.5361 GB, free: 3.652 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.135, allocations: 350.7 kB / 0.5364 GB, free: 3.301 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.1351, allocations: 88.7 kB / 0.5365 GB, free: 3.215 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.1353, allocations: 137.5 kB / 0.5367 GB, free: 3.066 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.1358, allocations: 239.8 kB / 0.5369 GB, free: 2.816 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1358, allocations: 0 / 0.5369 GB, free: 2.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009365/0.1367, allocations: 413.7 kB / 0.5373 GB, free: 2.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.1367, allocations: 8.125 kB / 0.5373 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1367, allocations: 4 kB / 0.5373 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005823/0.1373, allocations: 116.7 kB / 0.5374 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004295/0.1377, allocations: 91.88 kB / 0.5375 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.214/0.3517, allocations: 3.12 MB / 0.5405 GB, free: 21.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.352, allocations: 16.02 kB / 0.5406 GB, free: 21.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.352, allocations: 13.33 kB / 0.5406 GB, free: 21.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001607/0.3522, allocations: 151.8 kB / 0.5407 GB, free: 21.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.3522, allocations: 42.77 kB / 0.5408 GB, free: 21.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004555/0.3527, allocations: 304 kB / 0.541 GB, free: 21.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3527, allocations: 3.875 kB / 0.541 GB, free: 21.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.3527, allocations: 0.6562 kB / 0.541 GB, free: 21.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3527, allocations: 6.359 kB / 0.5411 GB, free: 21.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008799/0.3536, allocations: 0.6791 MB / 0.5417 GB, free: 21.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3536, allocations: 4.438 kB / 0.5417 GB, free: 21.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003623/0.354, allocations: 74.75 kB / 0.5418 GB, free: 21.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.354, allocations: 1.969 kB / 0.5418 GB, free: 21.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.354, allocations: 14.19 kB / 0.5418 GB, free: 21.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.354, allocations: 5.188 kB / 0.5418 GB, free: 21.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.354, allocations: 0.9375 kB / 0.5418 GB, free: 21.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005572/0.3545, allocations: 0.4884 MB / 0.5423 GB, free: 21.03 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.3547, allocations: 62.52 kB / 0.5424 GB, free: 21.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.3547, allocations: 9.25 kB / 0.5424 GB, free: 21.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.3549, allocations: 12.61 kB / 0.5424 GB, free: 21.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.355, allocations: 22.66 kB / 0.5424 GB, free: 21.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.355, allocations: 10.09 kB / 0.5424 GB, free: 21.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.3552, allocations: 253.8 kB / 0.5426 GB, free: 20.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3552, allocations: 1.594 kB / 0.5426 GB, free: 20.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003626/0.3556, allocations: 96.12 kB / 0.5427 GB, free: 20.94 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y) * 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 (34): * Single equations (assignments): 34 * 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.0007244/0.3563, allocations: 1.031 MB / 0.5437 GB, free: 20.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008311/0.3571, allocations: 430.7 kB / 0.5442 GB, free: 19.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3571, allocations: 1.156 kB / 0.5442 GB, free: 19.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/0.3573, allocations: 113.2 kB / 0.5443 GB, free: 19.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.3578, allocations: 71.7 kB / 0.5443 GB, free: 19.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004911/0.3627, allocations: 3.966 MB / 0.5482 GB, free: 17.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.3629, allocations: 220 kB / 0.5484 GB, free: 17.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001754/0.3631, allocations: 42.77 kB / 0.5485 GB, free: 17.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.3633, allocations: 143 kB / 0.5486 GB, free: 17.34 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3633, allocations: 1.094 kB / 0.5486 GB, free: 17.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04663/0.4099, allocations: 9.418 MB / 0.5578 GB, free: 15.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.24, allocations: 5.375 kB / 0.5578 GB, free: 15.34 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.590320060029626] Failed to read output from testmodel.py, exit status != 0: 13.365121716167778 13.387524299 13.256649358 Calling exit ...