Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.001221/0.001221, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001331/0.001331, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.286/1.286, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 179] 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.2712/0.2712, allocations: 49.56 MB / 337.1 MB, free: 4.105 MB / 270.1 MB " [Timeout remaining time 180] 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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.002028/0.002028, allocations: 67.91 kB / 477.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1064, allocations: 62.42 MB / 0.5269 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003568/0.1099, allocations: 2.316 MB / 0.5292 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1111, allocations: 0.6553 MB / 0.5298 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.1112, allocations: 4 kB / 0.5298 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.1113, allocations: 31.59 kB / 0.5298 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.1116, allocations: 91.33 kB / 0.5299 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.1117, allocations: 59.86 kB / 0.53 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.1121, allocations: 282.8 kB / 0.5302 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1122, allocations: 61.5 kB / 0.5303 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.1124, allocations: 115.5 kB / 0.5304 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.1126, allocations: 115.4 kB / 0.5305 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.1126, allocations: 23.94 kB / 0.5305 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.33e-05/0.1127, allocations: 20 kB / 0.5306 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.567e-05/0.1128, allocations: 55.77 kB / 0.5306 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.1129, allocations: 119.3 kB / 0.5307 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.1132, allocations: 230.9 kB / 0.5309 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1132, allocations: 0 / 0.5309 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1132, allocations: 4 kB / 0.531 GB, free: 10.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1132, allocations: 0 / 0.531 GB, free: 10.14 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009157/0.1141, allocations: 0.4968 MB / 0.5314 GB, free: 9.609 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1141, allocations: 12.03 kB / 0.5314 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.953e-05/0.1142, allocations: 12.12 kB / 0.5315 GB, free: 9.586 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.494e-05/0.1142, allocations: 50.73 kB / 0.5315 GB, free: 9.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.1143, allocations: 28.8 kB / 0.5315 GB, free: 9.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.1147, allocations: 209 kB / 0.5317 GB, free: 9.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.1148, allocations: 71.95 kB / 0.5318 GB, free: 9.188 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.14e-05/0.1148, allocations: 19.94 kB / 0.5318 GB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000344/0.1152, allocations: 179.1 kB / 0.532 GB, free: 8.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.1152, allocations: 0 / 0.532 GB, free: 8.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1152, allocations: 8 kB / 0.532 GB, free: 8.973 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1152, allocations: 0 / 0.532 GB, free: 8.973 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/0.1155, allocations: 127.8 kB / 0.5321 GB, free: 8.848 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009846/0.1165, allocations: 0.6087 MB / 0.5327 GB, free: 8.191 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.1169, allocations: 138.5 kB / 0.5328 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.117, allocations: 76.83 kB / 0.5329 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.1171, allocations: 4 kB / 0.5329 GB, free: 7.965 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.1171, allocations: 38.56 kB / 0.533 GB, free: 7.918 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.143e-06/0.1171, allocations: 0 / 0.533 GB, free: 7.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001135/0.1182, allocations: 0.5084 MB / 0.5335 GB, free: 7.375 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.1183, allocations: 55.41 kB / 0.5335 GB, free: 7.309 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.1185, allocations: 237.1 kB / 0.5337 GB, free: 7.066 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.1185, allocations: 33.7 kB / 0.5338 GB, free: 7.027 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1187, allocations: 152.5 kB / 0.5339 GB, free: 6.871 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.978e-05/0.1187, allocations: 67.38 kB / 0.534 GB, free: 6.805 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-05/0.1188, allocations: 53.58 kB / 0.534 GB, free: 6.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1189, allocations: 342.7 kB / 0.5344 GB, free: 6.402 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.1191, allocations: 59.91 kB / 0.5344 GB, free: 6.344 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.1192, allocations: 81.67 kB / 0.5345 GB, free: 6.258 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.1195, allocations: 141.5 kB / 0.5346 GB, free: 6.113 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1195, allocations: 0 / 0.5346 GB, free: 6.113 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000387/0.1199, allocations: 209.3 kB / 0.5348 GB, free: 5.902 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.1199, allocations: 4 kB / 0.5348 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1199, allocations: 0 / 0.5348 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1199, allocations: 4 kB / 0.5348 GB, free: 5.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004232/0.1204, allocations: 75.89 kB / 0.5349 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.1204, allocations: 0 / 0.5349 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.1205, allocations: 12.03 kB / 0.5349 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.1205, allocations: 15.94 kB / 0.5349 GB, free: 5.793 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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001206/0.1206, allocations: 129.8 kB / 0.5351 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.132e-05/0.1207, allocations: 19.86 kB / 0.5351 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.578e-05/0.1207, allocations: 26.12 kB / 0.5351 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1207, allocations: 7.922 kB / 0.5351 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1208, allocations: 0 / 0.5351 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1208, allocations: 4 kB / 0.5351 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007601/0.1215, allocations: 0.517 MB / 0.5356 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1215, allocations: 0 / 0.5356 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003753/0.1219, allocations: 63.89 kB / 0.5357 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1219, allocations: 0 / 0.5357 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.1219, allocations: 8 kB / 0.5357 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1219, allocations: 7.922 kB / 0.5357 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1219, allocations: 0 / 0.5357 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/0.1225, allocations: 347.2 kB / 0.536 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.023e-05/0.1226, allocations: 31.89 kB / 0.5361 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.1226, allocations: 11.98 kB / 0.5361 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.1227, allocations: 7.938 kB / 0.5361 GB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.1228, allocations: 15.97 kB / 0.5361 GB, free: 4.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.1228, allocations: 11.94 kB / 0.5361 GB, free: 4.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.123, allocations: 172.5 kB / 0.5363 GB, free: 4.352 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.123, allocations: 0 / 0.5363 GB, free: 4.352 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.1233, allocations: 44 kB / 0.5363 GB, free: 4.309 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: 1 (BreakerCommand.y) * 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.0008309/0.1241, allocations: 0.8845 MB / 0.5372 GB, free: 3.398 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.1244, allocations: 143.8 kB / 0.5373 GB, free: 3.258 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1244, allocations: 0 / 0.5373 GB, free: 3.258 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.1246, allocations: 71.91 kB / 0.5374 GB, free: 3.188 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.125, allocations: 48.34 kB / 0.5374 GB, free: 3.141 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.1284, allocations: 2.606 MB / 0.54 GB, free: 460 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1927/0.3211, allocations: 0.7415 MB / 0.5407 GB, free: 22.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3212, allocations: 22.59 kB / 0.5407 GB, free: 22.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.3213, allocations: 73.84 kB / 0.5408 GB, free: 22.36 MB / 414.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3213, allocations: 0 / 0.5408 GB, free: 22.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.35, allocations: 4.814 MB / 0.5455 GB, free: 21.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.1, allocations: 2.125 kB / 0.5455 GB, free: 21.64 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.731166996993124] Failed to read output from testmodel.py, exit status != 0: 11.251857355004176 11.266363451 11.150328742 Calling exit ...