Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 106.4 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2723/0.2723, allocations: 48.85 MB / 320.1 MB, free: 11.02 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 71.91 kB / 450 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1066, allocations: 59.15 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004998/0.1117, allocations: 3.139 MB / 0.5003 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.1138, allocations: 0.8343 MB / 0.5011 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003841/0.1143, allocations: 7.938 kB / 0.5011 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.1146, allocations: 59.31 kB / 0.5012 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006205/0.1152, allocations: 146.7 kB / 0.5013 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.1156, allocations: 127.7 kB / 0.5014 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007637/0.1164, allocations: 0.514 MB / 0.5019 GB, free: 8.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003348/0.1167, allocations: 153.3 kB / 0.5021 GB, free: 8.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.1171, allocations: 207.1 kB / 0.5023 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003473/0.1174, allocations: 222.8 kB / 0.5025 GB, free: 8.348 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.592e-05/0.1175, allocations: 36 kB / 0.5025 GB, free: 8.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.1177, allocations: 44 kB / 0.5026 GB, free: 8.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1178, allocations: 91.61 kB / 0.5027 GB, free: 8.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002468/0.118, allocations: 242.6 kB / 0.5029 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005128/0.1185, allocations: 430.2 kB / 0.5033 GB, free: 7.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1186, allocations: 0 / 0.5033 GB, free: 7.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1186, allocations: 4 kB / 0.5033 GB, free: 7.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.1186, allocations: 4 kB / 0.5033 GB, free: 7.512 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001517/0.1201, allocations: 0.7865 MB / 0.5041 GB, free: 6.676 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1202, allocations: 11.89 kB / 0.5041 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.668e-05/0.1202, allocations: 70.72 kB / 0.5042 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.1204, allocations: 52.28 kB / 0.5042 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006241/0.121, allocations: 370 kB / 0.5046 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.1211, allocations: 29.03 kB / 0.5046 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.391e-05/0.1212, allocations: 36.38 kB / 0.5046 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005125/0.1217, allocations: 318 kB / 0.5049 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.1217, allocations: 0 / 0.5049 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.1217, allocations: 16 kB / 0.5049 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.1217, allocations: 8 kB / 0.505 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004379/0.1222, allocations: 214.4 kB / 0.5052 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.124, allocations: 1.167 MB / 0.5063 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.1245, allocations: 261.1 kB / 0.5066 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.1247, allocations: 133.4 kB / 0.5067 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.1248, allocations: 288 / 0.5067 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.1248, allocations: 42.84 kB / 0.5067 GB, free: 3.824 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.162e-06/0.1248, allocations: 0 / 0.5067 GB, free: 3.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002273/0.1271, allocations: 1.076 MB / 0.5078 GB, free: 2.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.1272, allocations: 55.41 kB / 0.5078 GB, free: 2.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004563/0.1276, allocations: 389.5 kB / 0.5082 GB, free: 2.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.1277, allocations: 33.64 kB / 0.5082 GB, free: 2.168 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.1278, allocations: 224.6 kB / 0.5084 GB, free: 1.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1279, allocations: 126.2 kB / 0.5086 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.1281, allocations: 74.03 kB / 0.5086 GB, free: 1.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1282, allocations: 354.8 kB / 0.509 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.1285, allocations: 92.84 kB / 0.5091 GB, free: 1.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.1287, allocations: 140.6 kB / 0.5092 GB, free: 1.145 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004182/0.1291, allocations: 264 kB / 0.5094 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1291, allocations: 0 / 0.5094 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005522/0.1297, allocations: 337 kB / 0.5098 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1297, allocations: 12.03 kB / 0.5098 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1297, allocations: 4 kB / 0.5098 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1298, allocations: 0 / 0.5098 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000716/0.1305, allocations: 143.8 kB / 0.5099 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.1319, allocations: 1.445 MB / 0.5113 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.1322, allocations: 12.22 kB / 0.5113 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.1322, allocations: 23.98 kB / 0.5114 GB, free: 14.76 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 (48): * Single equations (assignments): 47 * 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.0002205/0.1324, allocations: 149.8 kB / 0.5115 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/0.1325, allocations: 43.47 kB / 0.5115 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000567/0.1331, allocations: 317.9 kB / 0.5119 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1331, allocations: 4 kB / 0.5119 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1331, allocations: 3.984 kB / 0.5119 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1332, allocations: 3.938 kB / 0.5119 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.1343, allocations: 0.7836 MB / 0.5126 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.1343, allocations: 0 / 0.5126 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004113/0.1347, allocations: 79.89 kB / 0.5127 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.1348, allocations: 0 / 0.5127 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-05/0.1348, allocations: 12 kB / 0.5127 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1348, allocations: 0 / 0.5127 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1348, allocations: 3.938 kB / 0.5127 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007228/0.1355, allocations: 0.5205 MB / 0.5132 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001667/0.1357, allocations: 140.5 kB / 0.5134 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.979e-05/0.1358, allocations: 8 kB / 0.5134 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.136, allocations: 8 kB / 0.5134 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.1361, allocations: 19.97 kB / 0.5134 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.1361, allocations: 15.98 kB / 0.5134 GB, free: 12.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000312/0.1364, allocations: 267.2 kB / 0.5137 GB, free: 12.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1365, allocations: 0 / 0.5137 GB, free: 12.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003857/0.1368, allocations: 91.94 kB / 0.5138 GB, free: 12.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.001004/0.1379, allocations: 1.056 MB / 0.5148 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000734/0.1386, allocations: 288.2 kB / 0.5151 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1386, allocations: 0 / 0.5151 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.1388, allocations: 139.8 kB / 0.5152 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.1394, allocations: 69.52 kB / 0.5153 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005875/0.1453, allocations: 3.965 MB / 0.5191 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.1458, allocations: 0.8274 MB / 0.5199 GB, free: 5.707 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002312/0.146, allocations: 51.23 kB / 0.52 GB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/0.1463, allocations: 151.4 kB / 0.5201 GB, free: 5.504 MB / 414.1 MB Notification: Performance of SimCode: time 9.81e-07/0.1463, allocations: 0 / 0.5201 GB, free: 5.504 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.231/0.3774, allocations: 8.795 MB / 0.5287 GB, free: 30.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.337/8.714, allocations: 3.75 kB / 0.5287 GB, free: 30.81 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)