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.001283/0.001283, 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.001414/0.001414, allocations: 209.2 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.403/1.403, allocations: 207.7 MB / 234.6 MB, free: 9.797 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.3061/0.3061, allocations: 49.61 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.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.002225/0.002225, allocations: 68.47 kB / 476.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1219, allocations: 62.43 MB / 0.5261 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004209/0.1261, allocations: 2.737 MB / 0.5288 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.1277, allocations: 0.7762 MB / 0.5296 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.1279, allocations: 11.94 kB / 0.5296 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.128, allocations: 51.33 kB / 0.5296 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.1284, allocations: 150.8 kB / 0.5298 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.1286, allocations: 111.8 kB / 0.5299 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004982/0.1291, allocations: 498.2 kB / 0.5304 GB, free: 9.797 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.1293, allocations: 88.69 kB / 0.5304 GB, free: 9.707 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002444/0.1295, allocations: 203.1 kB / 0.5306 GB, free: 9.508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.1298, allocations: 186.9 kB / 0.5308 GB, free: 9.324 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.479e-05/0.1299, allocations: 32 kB / 0.5308 GB, free: 9.293 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.208e-05/0.13, allocations: 40 kB / 0.5309 GB, free: 9.254 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.927e-05/0.13, allocations: 87.56 kB / 0.531 GB, free: 9.168 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.1302, allocations: 175 kB / 0.5311 GB, free: 8.996 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004868/0.1307, allocations: 414 kB / 0.5315 GB, free: 8.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1307, allocations: 7.984 kB / 0.5315 GB, free: 8.582 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1307, allocations: 0 / 0.5315 GB, free: 8.582 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1307, allocations: 0 / 0.5315 GB, free: 8.582 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.001221/0.1319, allocations: 0.6916 MB / 0.5322 GB, free: 7.859 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.132, allocations: 8.031 kB / 0.5322 GB, free: 7.852 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.649e-05/0.132, allocations: 70.72 kB / 0.5323 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.1322, allocations: 52.61 kB / 0.5323 GB, free: 7.723 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004813/0.1326, allocations: 296.6 kB / 0.5326 GB, free: 7.406 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.1327, allocations: 25.03 kB / 0.5326 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.1327, allocations: 44.02 kB / 0.5327 GB, free: 7.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004946/0.1332, allocations: 297.9 kB / 0.533 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1332, allocations: 4 kB / 0.533 GB, free: 7.027 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.1333, allocations: 12 kB / 0.533 GB, free: 7.016 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1333, allocations: 4 kB / 0.533 GB, free: 7.012 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003876/0.1337, allocations: 202.4 kB / 0.5332 GB, free: 6.816 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.1353, allocations: 0.9791 MB / 0.5341 GB, free: 5.777 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.1357, allocations: 236.6 kB / 0.5344 GB, free: 5.539 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.1359, allocations: 108.8 kB / 0.5345 GB, free: 5.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.1359, allocations: 4 kB / 0.5345 GB, free: 5.426 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1359, allocations: 34.56 kB / 0.5345 GB, free: 5.383 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.403e-06/0.1359, allocations: 0 / 0.5345 GB, free: 5.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.001671/0.1376, allocations: 0.7931 MB / 0.5353 GB, free: 4.555 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.1376, allocations: 59.41 kB / 0.5353 GB, free: 4.484 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.138, allocations: 361.6 kB / 0.5357 GB, free: 4.121 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.1381, allocations: 33.64 kB / 0.5357 GB, free: 4.082 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.1382, allocations: 212.6 kB / 0.5359 GB, free: 3.871 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1383, allocations: 134.9 kB / 0.536 GB, free: 3.738 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.794e-05/0.1384, allocations: 70.02 kB / 0.5361 GB, free: 3.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1386, allocations: 354.7 kB / 0.5365 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.1387, allocations: 84.7 kB / 0.5365 GB, free: 3.223 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.1389, allocations: 137.5 kB / 0.5367 GB, free: 3.074 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003883/0.1393, allocations: 243.8 kB / 0.5369 GB, free: 2.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1393, allocations: 0 / 0.5369 GB, free: 2.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009162/0.1403, allocations: 405.7 kB / 0.5373 GB, free: 2.414 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1403, allocations: 12.12 kB / 0.5373 GB, free: 2.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1403, allocations: 0 / 0.5373 GB, free: 2.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005707/0.1408, allocations: 124.7 kB / 0.5374 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.1413, allocations: 87.88 kB / 0.5375 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2092/0.3504, allocations: 3.117 MB / 0.5405 GB, free: 22.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.3507, allocations: 11.69 kB / 0.5406 GB, free: 22.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.3507, allocations: 12.56 kB / 0.5406 GB, free: 22.16 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.00014/0.3509, allocations: 152.1 kB / 0.5407 GB, free: 22.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.3509, allocations: 44.52 kB / 0.5408 GB, free: 22.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004397/0.3514, allocations: 299.4 kB / 0.541 GB, free: 22.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3514, allocations: 3.062 kB / 0.541 GB, free: 22.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.3514, allocations: 0.7031 kB / 0.541 GB, free: 22.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3514, allocations: 4.562 kB / 0.541 GB, free: 22.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008322/0.3522, allocations: 0.6862 MB / 0.5417 GB, free: 21.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3522, allocations: 4.219 kB / 0.5417 GB, free: 21.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.3526, allocations: 74.81 kB / 0.5418 GB, free: 21.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3526, allocations: 1.906 kB / 0.5418 GB, free: 21.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3526, allocations: 14.94 kB / 0.5418 GB, free: 21.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3526, allocations: 1.219 kB / 0.5418 GB, free: 21.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3526, allocations: 1.188 kB / 0.5418 GB, free: 21.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005353/0.3531, allocations: 0.4915 MB / 0.5423 GB, free: 21.35 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.3532, allocations: 64.14 kB / 0.5423 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/0.3533, allocations: 10.83 kB / 0.5424 GB, free: 21.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.3535, allocations: 10.94 kB / 0.5424 GB, free: 21.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.3535, allocations: 22.19 kB / 0.5424 GB, free: 21.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.3536, allocations: 6.625 kB / 0.5424 GB, free: 21.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002136/0.3538, allocations: 254.3 kB / 0.5426 GB, free: 21.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3538, allocations: 0 / 0.5426 GB, free: 21.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003399/0.3541, allocations: 93.34 kB / 0.5427 GB, free: 21.18 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.0006708/0.3548, allocations: 1.038 MB / 0.5437 GB, free: 20.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000781/0.3556, allocations: 429.2 kB / 0.5442 GB, free: 20.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3556, allocations: 0 / 0.5442 GB, free: 20.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.3557, allocations: 116.5 kB / 0.5443 GB, free: 20.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.3562, allocations: 74.86 kB / 0.5443 GB, free: 20.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004624/0.3608, allocations: 3.962 MB / 0.5482 GB, free: 17.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001704/0.361, allocations: 219.5 kB / 0.5484 GB, free: 17.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.3611, allocations: 42.53 kB / 0.5485 GB, free: 17.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.3613, allocations: 142.3 kB / 0.5486 GB, free: 17.54 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3613, allocations: 2.344 kB / 0.5486 GB, free: 17.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03836/0.3997, allocations: 9.422 MB / 0.5578 GB, free: 15.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.89, allocations: 1.125 kB / 0.5578 GB, free: 15.51 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --stepSize=0.016 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.728186478372663] Failed to read output from testmodel.py, exit status != 0: 13.017617103178054 13.033082466 12.898942001 Calling exit ...