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.001059/0.001059, allocations: 107.9 kB / 16.51 MB, free: 6.715 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.001028/0.001028, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.101/1.101, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2224/0.2224, allocations: 48.83 MB / 319.5 MB, free: 11.32 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.001272/0.001272, allocations: 61.22 kB / 389.5 MB, free: 48.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07002/0.0713, allocations: 59.17 MB / 448.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003828/0.07516, allocations: 3.397 MB / 452 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.07656, allocations: 0.8693 MB / 452.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.07677, allocations: 11.94 kB / 452.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.07692, allocations: 39.64 kB / 452.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.07722, allocations: 119.1 kB / 453.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.07743, allocations: 115.8 kB / 453.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003943/0.07783, allocations: 0.4983 MB / 453.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.07803, allocations: 133.3 kB / 453.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.07822, allocations: 183.2 kB / 454 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.07844, allocations: 214.8 kB / 454.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.417e-05/0.07849, allocations: 24 kB / 454.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.961e-05/0.07857, allocations: 28 kB / 454.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.468e-05/0.07864, allocations: 91.53 kB / 454.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.07881, allocations: 218.7 kB / 454.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.07913, allocations: 406.4 kB / 454.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.07915, allocations: 4 kB / 454.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.07915, allocations: 0 / 454.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.07916, allocations: 0 / 454.9 MB, free: 3.805 MB / 334.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.001159/0.08033, allocations: 0.7905 MB / 455.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.08037, allocations: 15.97 kB / 455.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.812e-05/0.08043, allocations: 66.72 kB / 455.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.08055, allocations: 56.28 kB / 455.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.08092, allocations: 374 kB / 456.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.08095, allocations: 25.03 kB / 456.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.221e-05/0.08101, allocations: 36.38 kB / 456.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.08146, allocations: 318 kB / 456.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.08148, allocations: 3.906 kB / 456.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.08151, allocations: 16 kB / 456.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.08153, allocations: 8 kB / 456.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00036/0.08189, allocations: 214.5 kB / 456.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.0834, allocations: 1.171 MB / 458 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004211/0.08383, allocations: 267.9 kB / 458.3 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.08403, allocations: 129.4 kB / 458.4 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.08406, allocations: 8.281 kB / 458.4 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.08409, allocations: 34.83 kB / 458.4 MB, free: 104 kB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.222e-06/0.08409, allocations: 0 / 458.4 MB, free: 104 kB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001847/0.08595, allocations: 1.08 MB / 459.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.08599, allocations: 55.41 kB / 459.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.08633, allocations: 381.5 kB / 459.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.08636, allocations: 37.7 kB / 460 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.08648, allocations: 220.6 kB / 460.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.093e-05/0.08657, allocations: 126 kB / 460.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-05/0.08666, allocations: 78.03 kB / 460.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.08678, allocations: 350.8 kB / 460.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.08695, allocations: 96.77 kB / 460.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.08715, allocations: 148.6 kB / 461 MB, free: 13.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.0875, allocations: 248 kB / 461.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.08751, allocations: 0 / 461.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000486/0.08801, allocations: 356.8 kB / 461.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.08803, allocations: 4 kB / 461.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.08804, allocations: 4 kB / 461.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.08805, allocations: 0 / 461.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006587/0.08871, allocations: 147.8 kB / 461.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008893/0.08961, allocations: 1.342 MB / 463.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.08985, allocations: 20.2 kB / 463.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.08988, allocations: 16 kB / 463.1 MB, free: 11.12 MB / 350.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.0001355/0.09002, allocations: 158.7 kB / 463.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.116e-05/0.09009, allocations: 39.53 kB / 463.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004579/0.09055, allocations: 313.8 kB / 463.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.09057, allocations: 4 kB / 463.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.09057, allocations: 0 / 463.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.09058, allocations: 4 kB / 463.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000921/0.09151, allocations: 0.7989 MB / 464.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.09152, allocations: 0 / 464.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.09191, allocations: 79.91 kB / 464.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.09192, allocations: 0 / 464.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.09195, allocations: 11.98 kB / 464.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.09196, allocations: 0 / 464.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.09196, allocations: 0 / 464.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006188/0.09259, allocations: 0.511 MB / 465 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.09272, allocations: 140.5 kB / 465.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/0.09278, allocations: 12 kB / 465.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.09301, allocations: 11.98 kB / 465.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.09306, allocations: 15.97 kB / 465.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.09308, allocations: 12 kB / 465.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002805/0.09337, allocations: 267.2 kB / 465.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09338, allocations: 0 / 465.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003151/0.0937, allocations: 88 kB / 465.5 MB, free: 8.574 MB / 350.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.0008456/0.09455, allocations: 1.057 MB / 466.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005869/0.09515, allocations: 292 kB / 466.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.09516, allocations: 0 / 466.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.09536, allocations: 135.7 kB / 467 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.09583, allocations: 87.91 kB / 467.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004593/0.1004, allocations: 4.18 MB / 471.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.1008, allocations: 0.8312 MB / 472.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001642/0.1009, allocations: 55.23 kB / 472.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.1012, allocations: 159.3 kB / 472.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1012, allocations: 0 / 472.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.1179, allocations: 8.069 MB / 480.4 MB, free: 9.527 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.1181, allocations: 203.8 kB / 480.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/1.869, allocations: 0 / 480.6 MB, free: 9.27 MB / 366.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)