Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.001233/0.001233, allocations: 112.2 kB / 21.22 MB, free: 0.7461 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.001316/0.001316, allocations: 210.1 kB / 24.53 MB, free: 4.148 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.345/1.345, allocations: 207.6 MB / 235.3 MB, free: 10 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.2846/0.2846, allocations: 49.56 MB / 337.1 MB, free: 4.102 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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.002066/0.002066, allocations: 67.89 kB / 477.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1179, allocations: 62.43 MB / 0.5269 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.004182/0.1221, allocations: 2.304 MB / 0.5291 GB, free: 12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.1235, allocations: 0.6592 MB / 0.5298 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.1237, allocations: 4 kB / 0.5298 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.1238, allocations: 31.59 kB / 0.5298 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003078/0.1242, allocations: 87.34 kB / 0.5299 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.1243, allocations: 63.84 kB / 0.53 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.1247, allocations: 270.8 kB / 0.5302 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1248, allocations: 53.11 kB / 0.5303 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.125, allocations: 111.5 kB / 0.5304 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.1252, allocations: 115.4 kB / 0.5305 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.1252, allocations: 16 kB / 0.5305 GB, free: 10.6 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.925e-05/0.1253, allocations: 24 kB / 0.5305 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.123e-05/0.1254, allocations: 51.77 kB / 0.5306 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.1255, allocations: 115.3 kB / 0.5307 GB, free: 10.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.1258, allocations: 226.9 kB / 0.5309 GB, free: 10.19 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1258, allocations: 0 / 0.5309 GB, free: 10.19 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1258, allocations: 3.938 kB / 0.5309 GB, free: 10.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1258, allocations: 4 kB / 0.5309 GB, free: 10.18 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0008938/0.1267, allocations: 0.4891 MB / 0.5314 GB, free: 9.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1267, allocations: 8.031 kB / 0.5314 GB, free: 9.652 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.642e-05/0.1268, allocations: 4.188 kB / 0.5314 GB, free: 9.648 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.91e-05/0.1268, allocations: 50.67 kB / 0.5314 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.758e-05/0.1269, allocations: 32.75 kB / 0.5315 GB, free: 9.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.1273, allocations: 205.1 kB / 0.5317 GB, free: 9.336 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.1273, allocations: 16.38 kB / 0.5317 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.1273, allocations: 16.38 kB / 0.5317 GB, free: 9.305 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003424/0.1277, allocations: 175 kB / 0.5319 GB, free: 9.121 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.1277, allocations: 4 kB / 0.5319 GB, free: 9.117 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.1277, allocations: 4 kB / 0.5319 GB, free: 9.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1277, allocations: 4 kB / 0.5319 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/0.128, allocations: 123.8 kB / 0.532 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.129, allocations: 0.6008 MB / 0.5326 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002896/0.1293, allocations: 126.5 kB / 0.5327 GB, free: 8.207 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.1294, allocations: 68.83 kB / 0.5328 GB, free: 8.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.1295, allocations: 4 kB / 0.5328 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.1295, allocations: 34.56 kB / 0.5328 GB, free: 8.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.402e-06/0.1295, allocations: 0 / 0.5328 GB, free: 8.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001154/0.1307, allocations: 493.2 kB / 0.5333 GB, free: 7.574 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.1307, allocations: 63.25 kB / 0.5333 GB, free: 7.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002628/0.131, allocations: 229.1 kB / 0.5336 GB, free: 7.262 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.131, allocations: 29.7 kB / 0.5336 GB, free: 7.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.1311, allocations: 148.5 kB / 0.5337 GB, free: 7.074 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.432e-05/0.1312, allocations: 75.38 kB / 0.5338 GB, free: 7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.885e-05/0.1313, allocations: 37.7 kB / 0.5338 GB, free: 6.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.1314, allocations: 338.8 kB / 0.5342 GB, free: 6.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.1316, allocations: 51.97 kB / 0.5342 GB, free: 6.566 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.1317, allocations: 77.67 kB / 0.5343 GB, free: 6.484 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.132, allocations: 126 kB / 0.5344 GB, free: 6.355 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.132, allocations: 4 kB / 0.5344 GB, free: 6.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003763/0.1324, allocations: 197.3 kB / 0.5346 GB, free: 6.152 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1324, allocations: 4 kB / 0.5346 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1324, allocations: 4 kB / 0.5346 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.1324, allocations: 0 / 0.5346 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/0.1328, allocations: 67.89 kB / 0.5347 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.1341, allocations: 1.334 MB / 0.536 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.1343, allocations: 12.09 kB / 0.536 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.1343, allocations: 7.938 kB / 0.536 GB, free: 4.609 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001338/0.1344, allocations: 133.8 kB / 0.5361 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.083e-05/0.1345, allocations: 27.8 kB / 0.5361 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003551/0.1348, allocations: 187.6 kB / 0.5363 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1348, allocations: 8 kB / 0.5363 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.1348, allocations: 0 / 0.5363 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1348, allocations: 3.938 kB / 0.5363 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007284/0.1355, allocations: 0.5013 MB / 0.5368 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1355, allocations: 0 / 0.5368 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.1358, allocations: 51.91 kB / 0.5369 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1358, allocations: 0 / 0.5369 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.1358, allocations: 0 / 0.5369 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1358, allocations: 4 kB / 0.5369 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1358, allocations: 8 kB / 0.5369 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005167/0.1363, allocations: 347 kB / 0.5372 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.766e-05/0.1364, allocations: 27.89 kB / 0.5372 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.331e-05/0.1364, allocations: 8 kB / 0.5372 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.1365, allocations: 7.984 kB / 0.5373 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.277e-05/0.1366, allocations: 19.97 kB / 0.5373 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.1366, allocations: 4 kB / 0.5373 GB, free: 3.203 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.1368, allocations: 164.5 kB / 0.5374 GB, free: 3.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1368, allocations: 0 / 0.5374 GB, free: 3.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.1371, allocations: 48 kB / 0.5375 GB, free: 2.996 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.0008517/0.1379, allocations: 0.8767 MB / 0.5383 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005214/0.1384, allocations: 159.8 kB / 0.5385 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1384, allocations: 0 / 0.5385 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1386, allocations: 75.91 kB / 0.5386 GB, free: 1.863 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003621/0.1389, allocations: 44.33 kB / 0.5386 GB, free: 1.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1988/0.3378, allocations: 2.569 MB / 0.5411 GB, free: 21.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.338, allocations: 0.7525 MB / 0.5418 GB, free: 21.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.3381, allocations: 28.52 kB / 0.5419 GB, free: 21.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.3382, allocations: 79.39 kB / 0.542 GB, free: 21.05 MB / 414.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3382, allocations: 0 / 0.542 GB, free: 21.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.3673, allocations: 5.279 MB / 0.5471 GB, free: 20.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.09, allocations: 6.625 kB / 0.5471 GB, free: 20.29 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.837535480037332] Failed to read output from testmodel.py, exit status != 0: 11.245931176003069 11.258558737 11.130145166 Calling exit ...